diff --git a/src/components/react_canvas/reactive_chart.tsx b/src/components/react_canvas/reactive_chart.tsx index a347d2da96..b19ee1f540 100644 --- a/src/components/react_canvas/reactive_chart.tsx +++ b/src/components/react_canvas/reactive_chart.tsx @@ -380,15 +380,6 @@ class Chart extends React.Component { ); } - // disable clippings when debugging - const clippings = debug - ? {} - : { - clipX: 0, - clipY: 0, - clipWidth: [90, -90].includes(chartRotation) ? chartDimensions.height : chartDimensions.width, - clipHeight: [90, -90].includes(chartRotation) ? chartDimensions.width : chartDimensions.height, - }; let brushProps = {}; const isBrushEnabled = this.props.chartStore!.isBrushEnabled(); @@ -399,13 +390,6 @@ class Chart extends React.Component { }; } - const layerClippings = { - clipX: chartDimensions.left, - clipY: chartDimensions.top, - clipWidth: chartDimensions.width, - clipHeight: chartDimensions.height, - }; - const className = classNames({ 'echChart--isBrushEnabled': this.props.chartStore!.isCrosshairCursorVisible.get(), }); @@ -443,15 +427,17 @@ class Chart extends React.Component { }} {...brushProps} > - + {this.renderGrids()} + + {this.renderAxes()} + @@ -468,10 +454,6 @@ class Chart extends React.Component { )} - {this.renderAxes()} - - - {this.renderBarValues()}