提交 16dd99da 编写于 作者: D deqingli

fix: dataStack work incorrectly with toolbox dataZoom #10972 #8520 #7534...

fix: dataStack work incorrectly with toolbox dataZoom #10972 #8520 #7534 #10359 #8069 #7872 #7732 #7672
上级 6217cd00
......@@ -30,7 +30,7 @@ import legendFilter from './legend/legendFilter';
import Component from '../model/Component';
// Series Filter
echarts.registerProcessor(legendFilter);
echarts.registerProcessor(echarts.PRIORITY.PROCESSOR.SERIES_FILTER, legendFilter);
Component.registerSubTypeDefaulter('legend', function () {
// Default 'plain' when no type specified.
......
......@@ -60,6 +60,8 @@ export var dependencies = {
var TEST_FRAME_REMAIN_TIME = 1;
var PRIORITY_PROCESSOR_FILTER = 1000;
var PRIORITY_PROCESSOR_SERIES_FILTER = 800;
var PRIORITY_PROCESSOR_DATASTACK = 900;
var PRIORITY_PROCESSOR_STATISTIC = 5000;
var PRIORITY_VISUAL_LAYOUT = 1000;
......@@ -75,6 +77,7 @@ var PRIORITY_VISUAL_BRUSH = 5000;
export var PRIORITY = {
PROCESSOR: {
FILTER: PRIORITY_PROCESSOR_FILTER,
SERIES_FILTER: PRIORITY_PROCESSOR_SERIES_FILTER,
STATISTIC: PRIORITY_PROCESSOR_STATISTIC
},
VISUAL: {
......@@ -2420,7 +2423,7 @@ export function getMap(mapName) {
registerVisual(PRIORITY_VISUAL_GLOBAL, seriesColor);
registerPreprocessor(backwardCompat);
registerProcessor(PRIORITY_PROCESSOR_STATISTIC, dataStack);
registerProcessor(PRIORITY_PROCESSOR_DATASTACK, dataStack);
registerLoading('default', loadingDefault);
// Default actions
......
......@@ -23,7 +23,7 @@ import {createHashMap, each} from 'zrender/src/core/util';
// data processing stage is blocked in stream.
// See <module:echarts/stream/Scheduler#performDataProcessorTasks>
// (2) Only register once when import repeatly.
// Should be executed before after series filtered and before stack calculation.
// Should be executed after series filtered and before stack calculation.
export default function (ecModel) {
var stackInfoMap = createHashMap();
ecModel.eachSeries(function (seriesModel) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册