对应颜色
This commit is contained in:
@@ -179,14 +179,16 @@ function initPicture() {
|
|||||||
shadowOffsetX: 0,
|
shadowOffsetX: 0,
|
||||||
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
shadowColor: 'rgba(0, 0, 0, 0.5)',
|
||||||
color: function (colors: any) {
|
color: function (colors: any) {
|
||||||
var colorList = [
|
const realName = colors.name.split(':')[0];
|
||||||
'#FFAE57',
|
var colorList: any = {
|
||||||
'#FF7853',
|
Event: '#9bca63',
|
||||||
'#EA5151',
|
Warning: '#26c0c0',
|
||||||
'#CC3F57',
|
Minor: '#27727b',
|
||||||
'#CC0000',
|
Major: '#d7504b',
|
||||||
];
|
Critical: 'rgba(218,44,54,1)',
|
||||||
return colorList[colors.dataIndex];
|
};
|
||||||
|
|
||||||
|
return colorList[realName];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user