Closed clg333zzz closed 1 year ago
@clg333zzz 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. 🤗
Hi, please make your demo minimal so that it's better to debug.
The code has been minimized。
The Tooltip shows different colors
When I zoom in on the chart, the colors change to the same
The color of the bar chart is controlled by custom, but the candlestick chart is controlled automatically.
visualMap: {
show: false,
seriesIndex: 1,
dimension: 2,
pieces: [
{
value: 1,
color: downColor
},
{
value: -1,
color: upColor
}
]
}
@Ovilia
echarts v5.4.1 resolved
series-candlestick.itemStyle. borderColorDoji
Version
5.2.2
Link to Minimal Reproduction
https://jsfiddle.net/clg333zzz/84nuka9L/8/
Steps to Reproduce
Current Behavior
当
[open, close, lowest, highest]
4个值均为0时,缩放KLine时,颜色会变化,但是下面的visualMap
并不会同步变化,因为visualMap
中的颜色是固定的。before
after
Expected Behavior
是否有一种方案可以固定KLine中的颜色,不会因为缩放导致颜色变化。
Environment
No response
Any additional comments?
No response