Skip to content

Commit 197664f

Browse files
committed
Merge pull request #1613 from GordonSmith/FocusChart
GH-1606 Add focus support to XYAxis
2 parents f1254f6 + ca24918 commit 197664f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chart/XYAxis.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,13 +470,13 @@
470470
function syncAxis() {
471471
if (context.focusChart.xAxisType() !== "ordinal") {
472472
context.xAxis.domain(context.focusChart.xBrush.extent());
473-
context.xAxis.svg.call(context.xAxis.d3Axis);
473+
context.xAxis.svgAxis.call(context.xAxis.d3Axis);
474474
} else {
475475
var brushExtent = context.focusChart.xBrush.extent();
476476
var brushWidth = brushExtent[1] - brushExtent[0];
477477
var scale = brushWidth / width;
478478
context.xAxis.range([-brushExtent[0] / scale, (width - brushExtent[0]) / scale]);
479-
context.xAxis.svg.call(context.xAxis.d3Axis);
479+
context.xAxis.svgAxis.call(context.xAxis.d3Axis);
480480
}
481481
}
482482
};

0 commit comments

Comments
 (0)