如果系列没有设置颜色,则会依次循环从该列表中取颜色作为系列颜色。...#91cc75', '#fac858', '#ee6666', '#73c0de', '#3ba272', '#fc8452', '#9a60b4', '#ea7ccc']
下图所示即为上述默认颜色数组的显示...color: 'red' // 0% 处的颜色
}, {
offset: 1, color: 'blue' // 100% 处的颜色
}],
global: false // 缺省为...false
}
// 纹理填充
{
image: imageDom, // 支持为 HTMLImageElement, HTMLCanvasElement,不支持路径字符串
repeat: 'repeat...: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)'
}
}
}
]
};
3、呈现效果
以上就是ECharts 饼图指定颜色显示的介绍