首页 > 技术文章 > echarts颜色渐变

whh666 2021-12-27 15:55 原文

itemStyle: {
normal: {
color: new this.$echarts.graphic.LinearGradient(1, 0, 0, 0, [{
offset: 0,
color:'#1794e4'
},{
offset: 0.6,
color: '#1794e42d'
}, {
offset: 1,
color: '#1794e40a'
}], false)
}
},

推荐阅读