diff --git a/src/visual/visualSolution.js b/src/visual/visualSolution.js
index dd07d20171..46bc3b6976 100644
--- a/src/visual/visualSolution.js
+++ b/src/visual/visualSolution.js
@@ -195,7 +195,7 @@ export function incrementalApplyVisual(stateList, visualMappings, getValueState,
// Consider performance
if (rawDataItem && rawDataItem.visualMap === false) {
- return;
+ continue;
}
var value = dim != null
diff --git a/test/visualMap-pieces.html b/test/visualMap-pieces.html
index dcffd432a7..14354e61cb 100644
--- a/test/visualMap-pieces.html
+++ b/test/visualMap-pieces.html
@@ -49,10 +49,8 @@
-
map
- line symbol (check toggle normally)
@@ -147,12 +145,12 @@ line symbol (check toggle normally)
{name: '河南',value: Math.round(Math.random()*2000)},
{name: '云南',value: 123},
{name: '辽宁',value: 305},
- {name: '黑龙江',value: Math.round(Math.random()*2000), visualMap: false},
- {name: '湖南',value: 200},
+ {name: '黑龙江', value: Math.round(Math.random()*2000), visualMap: false},
+ {name: '湖南', value: 200},
{name: '安徽',value: Math.round(Math.random()*2000)},
{name: '山东',value: Math.round(Math.random()*2000)},
{name: '新疆',value: Math.round(Math.random()*2000)},
- {name: '江苏',value: Math.round(Math.random()*2000)},
+ {name: '江苏', itemStyle: {color: 'red'}, value: Math.round(Math.random()*2000), visualMap: false},
{name: '浙江',value: Math.round(Math.random()*2000)},
{name: '江西',value: Math.round(Math.random()*2000)},
{name: '湖北',value: Math.round(Math.random()*2000)},
@@ -178,7 +176,16 @@ line symbol (check toggle normally)
]
};
- testHelper.createChart(echarts, 'map', option);
+ var chart = testHelper.create(echarts, 'map', {
+ title: [
+ 'All provinces should be "blue", except that',
+ '北京 is "black"',
+ '黑龙江 is "grey" (visualMap: false)',
+ '江苏 is "red" (visualMap: false)'
+ ],
+ option: option
+ });
+
})
@@ -272,8 +279,10 @@ line symbol (check toggle normally)
]
};
-
- testHelper.createChart(echarts, 'line-symbol', option);
+ var chart = testHelper.create(echarts, 'line-symbol', {
+ title: 'line symbol (check toggle normally)',
+ option: option
+ });
});