Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/component/dataZoom/AxisProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Dictionary } from '../../util/types';
// TODO Polar?
import DataZoomModel from './DataZoomModel';
import { AxisBaseModel } from '../../coord/AxisBaseModel';
import { unionAxisExtentFromData } from '../../coord/axisHelper';
import { getDataDimensionsOnAxis, unionAxisExtentFromData } from '../../coord/axisHelper';
import { ensureScaleRawExtentInfo } from '../../coord/scaleRawExtentInfo';
import { getAxisMainType, isCoordSupported, DataZoomAxisDimension } from './helper';
import { SINGLE_REFERRING } from '../../util/model';
Expand Down Expand Up @@ -297,7 +297,9 @@ class AxisProxy {

each(seriesModels, function (seriesModel) {
let seriesData = seriesModel.getData();
const dataDims = seriesData.mapDimensionsAll(axisDim);
// Use the same dimensions as axis extent calculation. Stacked series
// are rendered by their stack result dimension, not the original value dimension.
const dataDims = getDataDimensionsOnAxis(seriesData, axisDim);
Comment thread
susiwen8 marked this conversation as resolved.
Comment thread
susiwen8 marked this conversation as resolved.

if (!dataDims.length) {
return;
Expand Down
137 changes: 137 additions & 0 deletions test/toolbox-dataZoom-stack-area.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

121 changes: 121 additions & 0 deletions test/ut/spec/component/dataZoom/AxisProxy.test.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.