v-charts icon indicating copy to clipboard operation
v-charts copied to clipboard

多条折线 不同的渐变色

Open xiechen1201 opened this issue 4 years ago • 0 comments

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 期望结果

麻烦请问怎么才能实现多条折线图的渐变色

Reproduce 重现示例

未命名1599817894

xiechen1201 avatar Sep 11 '20 09:09 xiechen1201