areaStyle: {
//折线图渐变
color:{
type: 'linear',
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [{
offset: 0, color: '#545cc1' // 0% 处的颜色
},
{
offset: 1, color: '#2c8cf0' // 100% 处的颜色
}],
global: false // 缺省为 false
}
},
{ //柱状图渐变
name: "服务人数",
data: [158, 113, 148, 123, 153],
type: "bar",
barWidth: 1 * CommonParameter.FontSize,
color: {
type: "linear",
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{
offset: 0,
color: "#00FF85", // 0% 处的颜色
},
{
offset: 1,
color: "rgba(0,255,133,0)", // 100% 处的颜色
},
],
global: false, // 缺省为 false
},