Commit 5b61efb4 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix bug for bar chart

parent 404e69f7
...@@ -1581,7 +1581,9 @@ ...@@ -1581,7 +1581,9 @@
offset = barOffset(d, i) || y0, // offset is for stacked bar chart offset = barOffset(d, i) || y0, // offset is for stacked bar chart
posX = x(d), posY = y(d); posX = x(d), posY = y(d);
// fix posY not to overflow opposite quadrant // fix posY not to overflow opposite quadrant
if (__axis_rotated) {
if ((d.value > 0 && posY < offset) || (d.value < 0 && posY > offset)) { posY = offset; } if ((d.value > 0 && posY < offset) || (d.value < 0 && posY > offset)) { posY = offset; }
}
// 4 points that make a bar // 4 points that make a bar
return [ return [
[posX, offset], [posX, offset],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment