feat:修改chartype为 line bar stackarea里 前20条数据的颜色为固定值

This commit is contained in:
zhangyu
2020-11-10 18:09:51 +08:00
parent 6b8dc5828a
commit e7e0d180af
2 changed files with 16 additions and 4 deletions

View File

@@ -1034,8 +1034,14 @@
}
},
setColor(colorNum){
this.bgColorList = [];
for(let i=0;i<colorNum;i++) {
this.bgColorList = [
'#FF5200','#3685FF','#FF8D00','#00DCA2',
'#954Eff','#FFCB01','#f65A96','#00BFD0',
'#FF8BEA','#4D7693','#72577C','#99D750',
'#DD8270','#C475EE','#7E83FB','#7EB090',
'#FF9094','#00CCF5','#CF6684','#4E55FF'
];
for(let i=0;i<colorNum-19;i++) {
this.bgColorList.push(randomcolor())
}
},