Browse Source

Fix value on chart with line chart

pull/51/head
Masayuki Tanaka 11 years ago
parent
commit
0391968b12
  1. 1
      c3.js

1
c3.js

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

Loading…
Cancel
Save