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' } } ] },
2条答案
按热度按时间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' } } ] },
qco9c6ql2#
目前无法做到这一点,可以通过一个额外的 series,该 series 只包含希望增加 areaStyle 的数据