Browse Source

Fix tooltip position when axis rotated

pull/80/head
Masayuki Tanaka 11 years ago
parent
commit
a2940b2e41
  1. 3
      c3.js
  2. 4
      c3.min.js

3
c3.js

@ -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();
}

4
c3.min.js vendored

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