diff --git a/src/plot/highlight.js b/src/plot/highlight.js index 57802b6ba..b271edb09 100644 --- a/src/plot/highlight.js +++ b/src/plot/highlight.js @@ -90,10 +90,10 @@ class Highlight extends AbstractSeries { if (enableX && enableY) { return { - bottom: yScale.invert(brushArea.bottom), + bottom: yScale.invert(brushArea.bottom - marginTop), left: xScale.invert(brushArea.left - marginLeft), right: xScale.invert(brushArea.right - marginLeft), - top: yScale.invert(brushArea.top) + top: yScale.invert(brushArea.top - marginTop) }; }