echarts---问题记录

颜色纵向渐变

color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                offset: 0,
                color: 'rgba(19,225,225,0.4)'
            }, {
                offset: 1,
                color: 'rgba(19,225,225,0)'
            }])

颜色横向渐变

color: {
         colorStops: [{
                       offset: 0,
                       color: '#0085ff' // 0% 处的颜色
                      }, {
                       offset: 1,
                       color: '#00e3f4' // 100% 处的颜色
                     }],
                     globalCoord: false, // 缺省为 false

       }

 

posted @ 2019-11-06 12:23  ~面朝大海,春暖花开~  阅读(160)  评论(0编辑  收藏  举报