diff --git a/src/component/dataZoom/SliderZoomView.ts b/src/component/dataZoom/SliderZoomView.ts index b460ffee72..332feaccf9 100644 --- a/src/component/dataZoom/SliderZoomView.ts +++ b/src/component/dataZoom/SliderZoomView.ts @@ -430,8 +430,10 @@ class SliderZoomView extends DataZoomView { linePoints.push([thisCoord, 0]); } - areaPoints.push([thisCoord, otherCoord]); - linePoints.push([thisCoord, otherCoord]); + if (!isEmpty) { + areaPoints.push([thisCoord, otherCoord]); + linePoints.push([thisCoord, otherCoord]); + } lastIsEmpty = isEmpty; });