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',//背景透明,以及邊框設置;
}
},
},
]
