series: [{
name: '已完成',
type: 'bar',
barWidth: 20,
stack: '广告',
itemStyle: {
normal: {
barBorderRadius: 5,
color: new echarts.graphic.LinearGradient(0,
0, 0, 1, [{
offset: 0,
color: '#FFCC00'
}, {
offset: 1,
color: '#66FF66'
}])
}
},
data: barData1
},
{
name: '未完成',
type: 'bar',
barWidth: 20,
stack: '广告',
itemStyle: {
normal: {
barBorderRadius: 5,
color: new echarts.graphic.LinearGradient(0,
0, 0, 1, [{
offset: 0,
color: '#9966FF'
}, {
offset: 1,
color: '#993399'
}])
}
},
data: barData3
}
]
color :[ new echarts.graphic.LinearGradient(0, 0, 0, 1, [
{ offset: 0, color: '#FFCC00'
},
{
offset: 1,
color: '#66FF66'
}]),new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
offset: 0,
color: '#9966FF'
}, {
offset: 1,
color: '#993399'
}]),
'#00ffff',
'#00cfff',
'#006ced',
'#ffe000',
'#ffa800',
'#ff5b00'
]