From 0d7f323e98ca52a441554d1758f8e8698efb0e85 Mon Sep 17 00:00:00 2001 From: susiwen Date: Sun, 28 Apr 2019 10:34:21 +0800 Subject: [PATCH 1/2] Fix stack with datazoom, x axis is not correct (#10359) --- src/component/dataZoom/AxisProxy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/component/dataZoom/AxisProxy.js b/src/component/dataZoom/AxisProxy.js index 3b003053a4..566bd92ace 100644 --- a/src/component/dataZoom/AxisProxy.js +++ b/src/component/dataZoom/AxisProxy.js @@ -282,6 +282,8 @@ AxisProxy.prototype = { } var targetSeries = this.getTargetSeriesModels(); + // Calcule stack value before data extend caclulation + dataStack(this.ecModel); // Culculate data window and data extent, and record them. this._dataExtent = calculateDataExtent(this, this._dimName, targetSeries); From 01ca970be1289f7cadb8e4047d4acfad74637ee8 Mon Sep 17 00:00:00 2001 From: susiwen Date: Sun, 28 Apr 2019 11:16:00 +0800 Subject: [PATCH 2/2] import dataStack to AxisProxy --- src/component/dataZoom/AxisProxy.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/component/dataZoom/AxisProxy.js b/src/component/dataZoom/AxisProxy.js index 566bd92ace..4db0166ce7 100644 --- a/src/component/dataZoom/AxisProxy.js +++ b/src/component/dataZoom/AxisProxy.js @@ -21,6 +21,7 @@ import * as zrUtil from 'zrender/src/core/util'; import * as numberUtil from '../../util/number'; import * as helper from './helper'; import sliderMove from '../helper/sliderMove'; +import dataStack from '../../processor/dataStack'; var each = zrUtil.each; var asc = numberUtil.asc;