Commit 5460b0b5 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix x grid focus

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