echarts的柱状图的多个柱子的颜色设置
itemStyle:{
normal:{
color:function(params){
var color=['red','yellow','blue']
return color[params.dataIndex%color.length]
}
}
}
itemStyle:{
normal:{
color:function(params){
var color=['red','yellow','blue']
return color[params.dataIndex%color.length]
}
}
}