Loading

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',
      },
    ]),
  ]
posted @ 2022-04-01 09:19  资深if-else侠  阅读(100)  评论(0编辑  收藏  举报