series下面的这个areaStyle
series: [
          {
            data: count,
            type: "line",
            smooth: true,
            areaStyle: {
              normal: {
                color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                  { offset: 0, color: "red" },
                  { offset: 0.5, color: "pink" },
                  { offset: 1, color: "black" }
                ])
              }
            }, //填充区域样式
            lineStyle: {
              color: "#00b5ff",
              width: 1
            }, //线条的样式
            itemStyle: {
              color: "rgb(255, 70, 131)",
              opacity: 0 //为0不会绘制图形拐点消失
            } //拐点的样式
          }
        ],

echarts 折线图阴影颜色渐变

效果图

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-12-16
  • 2022-12-23
  • 2021-12-10
  • 2021-10-19
猜你喜欢
  • 2022-12-23
  • 2021-10-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
相关资源
相似解决方案