echarts [Feature] 想在visualMap.pieces添加属性areaStyle

ghg1uchk  于 2022-11-02  发布在  Echarts
关注(0)|答案(2)|浏览(346)

What problem does this feature solve?

我想将线图分为几段,然后给每段分别渲染颜色及线下区域的颜色

What does the proposed API look like?

visualMap: { type: 'piecewise', show: false, dimension: 0, seriesIndex: 0, outOfRange: { color: 'yellow', }, pieces: [ { gt: 1, lt: 3, color: 'blue', areaStyle: { color: 'red' } }, { gt: 5, lt: 7, color: 'orange', areaStyle: { color: 'green' } } ] },

wnvonmuf

wnvonmuf1#

@spirit-boy-guan It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

[Feature] Want to add the property areaStyle to visualMap.pieces

BODY

What problem does this feature solve?

I want to divide the line chart into segments, and then render the color of each segment separately and the color of the offline area

What does the proposed API look like?

visualMap: { type: 'piecewise', show: false, dimension: 0, seriesIndex: 0, outOfRange: { color: 'yellow', }, pieces: [ { gt: 1, lt: 3, color: 'blue', areaStyle: { color: 'red' } }, { gt: 5, lt: 7, color: 'orange', areaStyle: { color: 'green' } } ] },

qco9c6ql

qco9c6ql2#

目前无法做到这一点,可以通过一个额外的 series,该 series 只包含希望增加 areaStyle 的数据

相关问题