SIGN IN SIGN UP
apache / echarts UNCLAIMED

Apache ECharts is a powerful, interactive charting and data visualization library for browser

0 0 81 TypeScript

Keep toolbox dataZoom from dropping stacked areas

Toolbox dataZoom injects select dataZoom components for both axes. When the value axis is scaled, its window is derived from the stacked coordinate extent, but filtering still used the original value dimension, so stacked area series could be filtered away before render. Reuse the axis extent dimension selection so dataZoom filters stacked series by their rendered stack result dimension.

Constraint: toolbox dataZoom creates internal value-axis filters even before users actively zoom.

Rejected: Force toolbox dataZoom to filterMode empty | changes existing dataZoom semantics and revives an older workaround.

Confidence: high

Scope-risk: narrow

Directive: Keep dataZoom filtering dimensions aligned with axis extent calculation for stacked data.

Tested: ./node_modules/.bin/jest --config test/ut/jest.config.cjs --coverage=false test/ut/spec/component/dataZoom --runInBand

Tested: npm run checktype

Tested: ./node_modules/.bin/eslint src/component/dataZoom/AxisProxy.ts test/ut/spec/component/dataZoom/AxisProxy.test.ts

Tested: git diff --check -- src/component/dataZoom/AxisProxy.ts test/toolbox-dataZoom-stack-area.html test/ut/spec/component/dataZoom/AxisProxy.test.ts

Tested: Chrome headless screenshot of test/toolbox-dataZoom-stack-area.html

Not-tested: npm run checkheader fails on pre-existing unrelated files missing headers.
S
susiwen8 committed
7c4825139617378f549ab5e01fd7cfaa137dfb5a
Parent: d6a812f