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-03-25 17:19  资深if-else侠  阅读(98)  评论(0编辑  收藏  举报