series : [
{
name:'直接访问',
type:'bar',
barWidth: '60%',
data:[10, 52, 200, 334, 390, 330, 220],
itemStyle:{
normal:{
color:function(params){
if(params.value >0 && params.value <100){
return "#FE8463";
}else if(params.value >=100 && params.value<=300 ){
return "#27727B";
}
return "#9BCA63";
}
}
}
}
]
---------------------
作者:shen_xy
来源:CSDN
原文:https://blog.csdn.net/shen_xy/article/details/79852503
版权声明:本文为博主原创文章,转载请附上博文链接!