Commit a2940b2e authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix tooltip position when axis rotated

parent 2773c4ae
......@@ -305,7 +305,8 @@
innerRadius = hasDonutType(c3.data.targets) ? radius * 0.6 : 0;
}
function getSvgLeft() {
var svgRect = d3.select('.y.axis').node().getBoundingClientRect(),
var leftAxisClass = __axis_rotated ? ".x.axis" : ".y.axis",
svgRect = d3.select(leftAxisClass).node().getBoundingClientRect(),
chartRect = d3.select(__bindto).node().getBoundingClientRect();
return svgRect.right - chartRect.left - getCurrentPaddingLeft();
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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