Browse Source

Fix bug for bar chart

pull/66/head
Masayuki Tanaka 11 years ago
parent
commit
5b61efb4ee
  1. 2
      c3.js
  2. 2
      c3.min.js

2
c3.js

@ -1581,7 +1581,9 @@
offset = barOffset(d, i) || y0, // offset is for stacked bar chart
posX = x(d), posY = y(d);
// fix posY not to overflow opposite quadrant
if (__axis_rotated) {
if ((d.value > 0 && posY < offset) || (d.value < 0 && posY > offset)) { posY = offset; }
}
// 4 points that make a bar
return [
[posX, offset],

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save