|
|
@ -1079,7 +1079,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
function getBarX(barW, barTargetsNum, barIndices, isSub) { |
|
|
|
function getBarX(barW, barTargetsNum, barIndices, isSub) { |
|
|
|
var scale = isSub ? subX : x; |
|
|
|
var scale = isSub ? subX : x; |
|
|
|
if (! barTargetsNum) { return function () { return 0; }; } |
|
|
|
|
|
|
|
return function (d) { |
|
|
|
return function (d) { |
|
|
|
var barIndex = d.id in barIndices ? barIndices[d.id] : 0; |
|
|
|
var barIndex = d.id in barIndices ? barIndices[d.id] : 0; |
|
|
|
return d.x || d.x === 0 ? scale(d.x) - barW * (barTargetsNum / 2 - barIndex) : 0; |
|
|
|
return d.x || d.x === 0 ? scale(d.x) - barW * (barTargetsNum / 2 - barIndex) : 0; |
|
|
|