VUE项目中使用Echerts的一些另类参数

柱状图渐变

series: [
    {
    
    
        itemStyle:{
    
    
            color: new this.$ech.graphic.LinearGradient(
                     1, 0, 0, 0,
                     [
                         {
    
    offset: 0, color: '#7c4dff'},
                         {
    
    offset: 1, color: '#2073fe'},
                     ]
               	)
        }
    }
]

柱状图宽度

series: [
    {
    
    
        barWidth: 8,
    }
]

猜你喜欢

转载自blog.csdn.net/qq_39453402/article/details/107316837