提交 761eb15e 编写于 作者: L lang

Tweak

上级 f2816745
......@@ -2,19 +2,18 @@ define(function (require) {
return function (ecModel) {
ecModel.eachSeriesByType('graph', function (seriesModel) {
var colorList = seriesModel.get('color');
var categoriesData = seriesModel.getCategoriesData();
var data = seriesModel.getData();
var categoryNameIdxMap = {};
categoriesData.each(function (idx) {
categoryNameIdxMap[categoriesData.getName(idx)] = idx;
var name = categoriesData.getName(idx);
categoryNameIdxMap[name] = idx;
var itemModel = categoriesData.getItemModel(idx);
var rawIdx = categoriesData.getRawIndex(idx);
var color = itemModel.get('itemStyle.normal.color')
|| colorList[rawIdx % colorList.length];
|| seriesModel.getColorFromPalette(name);
categoriesData.setItemVisual(idx, 'color', color);
});
......
......@@ -826,7 +826,7 @@ define(function (require) {
// Progressive configuration
var elCount = 0;
chartView.group.traverse(function (el) {
if (el.type !== 'group') {
if (el.type !== 'group' && !el.ignore) {
elCount++;
}
});
......
......@@ -37,7 +37,7 @@ define(function () {
animationThreshold: 2000,
// Progressive configuration
progressiveThreshold: 2000,
progressiveThreshold: 3000,
progressive: 400,
// Threshold of if use single hover layer to optimize.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册