echarts 柱状图 渐变 背景透明


series: [
{
name:'计划数',
type:'bar',
data:this.plan_num,
itemStyle: {
normal: {//写上normal属性,否则不起作用;
barBorderRadius: 30,//圆角
color: new echarts.graphic.LinearGradient(
0, 0, 0, 1,//从上往下渐变
[
{offset: 0, color: '#f3e925'},
{offset: 0.7, color: '#4ac899'},
{offset: 1, color: '#16eb81'}
]
)
}
},
},
{
type:'bar',
data:this.plan_num,
name:'计划培训数',

itemStyle: {

normal: {
barBorderRadius: 30,
color:'rgba(255, 192, 2, 0.8)',
barBorderColor:'#ffc002',//背景透明,以及边框设置;
}
},

},
]


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM