慕仙森
我随便写了三个颜色。series: [{ name: 'Clouds', type: 'line', data: [5, 7, 13, 20, 30], areaStyle: {normal:{}}, itemStyle: { normal: { color: new echarts.graphic.LinearGradient( 0, 0, 0, 1, [ {offset: 0, color: 'red'}, {offset: 0.5, color: 'pink'}, {offset: 1, color: '#ddd'} ] ) } }}]