v-charts
v-charts copied to clipboard
多条折线 不同的渐变色
Summary 简述
this.chartSettings = { area: true, itemStyle: { // 面积图颜色设置 color: { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [ { offset: 0, color: "rgba(4, 149, 244, 0.6)", // 0% 处的颜色 }, { offset: 1, color: "rgba(4, 149, 244, 0)", // 100% 处的颜色 }, ], globalCoord: false, // 缺省为 false }, }, };
查了一些资料都是设置单挑折现图面积的渐变色
Expect 期望结果
麻烦请问怎么才能实现多条折线图的渐变色