Skip to content

Commit

Permalink
fix: dataStack work incorrectly with toolbox dataZoom apache#10972 ap…
Browse files Browse the repository at this point in the history
  • Loading branch information
deqingli committed Sep 10, 2019
1 parent 6217cd0 commit 16dd99d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/component/legend.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 4 additions & 1 deletion src/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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: {
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/processor/dataStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16dd99d

Please sign in to comment.