记得上下班打卡 | git大法好,push需谨慎

Commit 02fe322a authored by anjiabin's avatar anjiabin

提交chime社交相关

parent 95b5c0b2
......@@ -313,6 +313,21 @@
data : [
{type : 'average', name: '平均值'}
]
},
itemStyle: {
normal: {
//这里是重点
color: function(params) {
//注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
var colorList = ['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622'];
//给大于颜色数量的柱体添加循环颜色的判断
var index = params.dataIndex;
if (params.dataIndex >= colorList.length) {
index = params.dataIndex - colorList.length;
}
return colorList[index]
}
}
}
}
]
......@@ -407,6 +422,21 @@
data : [
{type : 'average', name: '平均值'}
]
},
itemStyle: {
normal: {
//这里是重点
color: function(params) {
//注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
var colorList = ['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622'];
//给大于颜色数量的柱体添加循环颜色的判断
var index = params.dataIndex;
if (params.dataIndex >= colorList.length) {
index = params.dataIndex - colorList.length;
}
return colorList[index]
}
}
}
}
]
......@@ -501,6 +531,21 @@
data : [
{type : 'average', name: '平均值'}
]
},
itemStyle: {
normal: {
//这里是重点
color: function(params) {
//注意,如果颜色太少的话,后面颜色不会自动循环,最好多定义几个颜色
var colorList = ['#c23531','#2f4554', '#61a0a8', '#d48265', '#91c7ae','#749f83', '#ca8622'];
//给大于颜色数量的柱体添加循环颜色的判断
var index = params.dataIndex;
if (params.dataIndex >= colorList.length) {
index = params.dataIndex - colorList.length;
}
return colorList[index]
}
}
}
}
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment