diff --git a/packages/visx-brush/src/Brush.tsx b/packages/visx-brush/src/Brush.tsx index 93aedb4bc..7ca1004f6 100644 --- a/packages/visx-brush/src/Brush.tsx +++ b/packages/visx-brush/src/Brush.tsx @@ -207,8 +207,8 @@ class Brush extends Component { if (brushRegion === 'chart') { left = 0; top = 0; - brushRegionWidth = width; - brushRegionHeight = height; + brushRegionWidth = width - margin.left - margin.right; + brushRegionHeight = height - margin.top - margin.bottom; } else if (brushRegion === 'yAxis') { top = 0; brushRegionHeight = height;