From c49e8c025fe4e69981eadcd8a051a16cf9846414 Mon Sep 17 00:00:00 2001 From: Archie Wood <58074498+archiewood@users.noreply.github.com> Date: Wed, 12 Nov 2025 16:13:05 -0500 Subject: [PATCH] fix: dataZoom incorrectly filters stacked data --- src/component/dataZoom/AxisProxy.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/component/dataZoom/AxisProxy.ts b/src/component/dataZoom/AxisProxy.ts index 11d5f6c742..8c28b729c6 100644 --- a/src/component/dataZoom/AxisProxy.ts +++ b/src/component/dataZoom/AxisProxy.ts @@ -31,6 +31,7 @@ import { unionAxisExtentFromData } from '../../coord/axisHelper'; import { ensureScaleRawExtentInfo } from '../../coord/scaleRawExtentInfo'; import { getAxisMainType, isCoordSupported, DataZoomAxisDimension } from './helper'; import { SINGLE_REFERRING } from '../../util/model'; +import { getStackedDimension } from '../../data/helper/dataStackHelper'; const each = zrUtil.each; const asc = numberUtil.asc; @@ -303,6 +304,10 @@ class AxisProxy { return; } + zrUtil.each(dataDims, function (dim, index) { + dataDims[index] = getStackedDimension(seriesData, dim); + }); + if (filterMode === 'weakFilter') { const store = seriesData.getStore(); const dataDimIndices = zrUtil.map(dataDims, dim => seriesData.getDimensionIndex(dim), seriesData);