Browse Source

Fix x grid focus

pull/104/head
Masayuki Tanaka 11 years ago
parent
commit
5460b0b576
  1. 10
      c3.js
  2. 4
      c3.min.js

10
c3.js

@ -2461,9 +2461,6 @@
// Expand shapes if needed
if (__point_focus_expand_enabled) { expandCircles(i); }
expandBars(i);
// Show xgrid focus line
showXGridFocus(selectedData);
})
.on('mouseout', function (_, i) {
if (hasArcType(c3.data.targets)) { return; }
@ -2485,6 +2482,9 @@
});
showTooltip(selectedData, d3.mouse(this));
// Show xgrid focus line
showXGridFocus(selectedData);
if (! __data_selection_enabled) { return; }
if (__data_selection_grouped) { return; } // nothing to do when grouped
@ -2763,9 +2763,7 @@
tooltip.style("display", "none");
// grid
main.select('line.' + CLASS.xgridFocus)
.attr(__axis_rotated ? 'y1' : 'x1', xx)
.attr(__axis_rotated ? 'y2' : 'x2', xx);
main.select('line.' + CLASS.xgridFocus).style("visibility", "hidden");
if (__grid_x_show) {
if (__grid_x_type === 'year') {
xgridData = [];

4
c3.min.js vendored

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