(本文档仅供参考)
问题
雷达图希望实现颜色实现渐变的效果,如下截图
解决方案
具体请参考如下扩展属性
代码块 | ||||
---|---|---|---|---|
| ||||
{ series: [{ areaStyle: { color: { type: 'radial', x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: 'red' // 0% 处的颜色 }, { offset: 1, color: 'blue' // 100% 处的颜色 }], global: false // 缺省为 false } } }] } |
...