wei-dong

1.import echarts from \'echarts\';

2.

options = {
      backgroundColor: \'#fff\',
      xAxis: {
        type: \'category\',
        boundaryGap: false,
        data: xValue,
      },
      yAxis: {
        type: \'value\'
      },
      series: [{
        data: [820, 932, 901, 934, 1290, 1330, 1320],
        type: \'line\',
        itemStyle: {
          color: \'#00CD9F\'
        },
        areaStyle: {
          color: new (<any>echarts).graphic.LinearGradient(0, 0, 0, 1, [{
            offset: 0,
            color: \'rgba(0,205,159,0.2)\'
          }, {
            offset: 1,
            color: \'rgba(0,232,205,0)\'
          }])
        }
      }]
    };

分类:

技术点:

相关文章:

  • 2021-06-10
  • 2021-06-25
  • 2021-10-29
  • 2019-07-25
  • 2021-07-27
  • 2022-02-19
  • 2021-12-05
  • 2021-11-08
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-17
  • 2021-05-24
  • 2021-11-10
相关资源
相似解决方案