## 颜色渐进 ```json # 方法1 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [ // 这里 offset: 0 1 ,表示从下往上的渐变色 { offset: 0, // 0%处的颜色 color: "rgba(0, 216, 255,1)", }, { offset: 0.8, // 100%处的颜色 color: "rgba(0, 167, 254,1)", }, { offset: 1, // 100%处的颜色 color: "rgba(42, 118, 254,1)",// }, ]), # 方法2 color: { x: 0, y: 0, x2: 0, y2: 1, type: "linear", global: false, colorStops: [ { offset: 0, // 0%处的颜色 color: "rgba(0, 216, 255,1)", }, { offset: 0.8, // 100%处的颜色 color: "rgba(0, 167, 254,1)", }, { offset: 1, // 100%处的颜色 color: "rgba(42, 118, 254,1)", // }, ], }, ```