e-charts 的柱状图的柱子颜色怎么设置成渐变色?

https://blog.csdn.net/u012317188/article/details/77746609


 {

            type:'bar',

            itemStyle: {

                  normal: {

                    color: new echarts.graphic.LinearGradient(

                      0, 0, 0, 1,

                    [

                        {offset: 0, color: '#D62436'},

                        {offset: 1, color: '#E48D96'}

                    ]

                 )

            }},

          },

你可能感兴趣的:(e-charts 的柱状图的柱子颜色怎么设置成渐变色?)