提交 5a2c3286 编写于 作者: O Ovilia

fix(sunburst): use first-generation color if no visualMap

上级 2e8e9599
......@@ -284,7 +284,14 @@ export default SunburstPiece;
* @param {module:echarts/model/Global} ecModel echarts defaults
*/
function getNodeColor(node, seriesModel, ecModel) {
// Color from visualMap
var visualColor = node.getVisual('color');
var visualMetaList = node.getVisual('visualMeta');
if (visualMetaList.length === 0) {
// Use first-generation color if has no visualMap
visualColor = null;
}
// Self color or level color
var color = node.getModel('itemStyle.normal').get('color');
if (color) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册