其他分享
首页 > 其他分享> > echarts渐变色盘

echarts渐变色盘

作者:互联网

var color = [

    new echarts.graphic.LinearGradient(0, 0, 1, 0, [
      {
        offset: 0,
        color: '#ff960e',
      },
      {
        offset: 1,
        color: '#f9d12f',
      },
    ]),

    new echarts.graphic.LinearGradient(0, 0, 1, 0, [
      {
        offset: 0,
        color: '#47b6ea',
      },
      {
        offset: 1,
        color: '#00ffcf',
      },
    ]),
    new echarts.graphic.LinearGradient(0, 0, 1, 0, [
      {
        offset: 0,
        color: '#5f7ff2',
      },
      {
        offset: 1,
        color: '#7ba6ff',
      },
    ]),


    new echarts.graphic.LinearGradient(0, 0, 1, 0, [
      {
        offset: 0,
        color: '#fb6666',
      },
      {
        offset: 1,
        color: '#ff960e',
      },
    ]),
  ]

标签:graphic,color,渐变色,LinearGradient,offset,new,echarts
来源: https://www.cnblogs.com/whh666/p/16085221.html