series: [{
name: '每年新增资产数量',
type: 'bar',
barWidth: 26,
data: [230, 349, 216, 160, 226, 216, 160, 226], //数据
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
0, 0, 0, 1,
[{
offset: 0,
color: '#fc8933'
}, //柱图渐变色
{
offset: 1,
color: '#ffc003'
}, //柱图渐变色
]
)
},
},
}]