This is an automated email from the ASF dual-hosted git repository. ovilia pushed a commit to branch fix-dataZoom in repository https://gitbox.apache.org/repos/asf/echarts.git
commit 4cccafb96b2a1b04df7785da808a5f6f30c548df Author: Ovilia <[email protected]> AuthorDate: Thu Jun 19 19:46:09 2025 +0800 fix(dataZoom): fix the case when first value is NaN, relates to #16978 --- src/component/dataZoom/SliderZoomView.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/component/dataZoom/SliderZoomView.ts b/src/component/dataZoom/SliderZoomView.ts index b460ffee7..332feaccf 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; }); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
