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", 1 }, //线条的样式 itemStyle: { color: "rgb(255, 70, 131)", opacity: 0 //为0不会绘制图形拐点消失 } //拐点的样式 } ],
效果图