Bull and Bear Color in CandleSeries don't work as expected

Hi team,

I have a CartesianChart with Candle Series. Here's the example:

Day1: Open: 81,000 / Close: 79,000 / High: 85,900 / Low: 76,800

Day2: Open: 79,000 / Close: 76,600 / High: 79,100 / Low: 73,600

In these case, I expect that Day1 should be bear color (since close is lower than open), and Day2 should be also bear color (same reason).

But, the graph shows that Day1 is bull color and Day2 is bear color. 

I'd like to know exact logic of the bull and bear color in CandleSeries. I'm not sure how it works but I'm pretty sure that at least they show the same color.

Please kindly check this issue.


Thanks,



1 Reply

SK Sriram Kiran Senthilkumar Syncfusion Team November 25, 2021 01:14 PM UTC

Hi Jinkyo, 

Thanks for your patience. We have analyzed your scenario at our end regarding the rendering behavior of candle series and we would like to let you know that currently, in our chart widget, the candle series data points bull and bear color assignment is calculated by checking the current candle’s closing price with the previous candle closing price. That is,  
·         when the current candle’s closing price is greater than the previous candle’s closing price then that candle renders in bull color (say green color) or 
·         When the current candle’s closing price is lesser than the previous candle’s closing price then the current candle renders in bear color (say red color). 
·         When the current candle’s closing price is higher than that candle’s opening price, then that candle will render as hollow candle else it will render as solid candle. 
 
This is the current default behavior followed in our chart widget for the candle series and we have also analyzed on the other competitors such as high charts and they too follow the same behavior for candle series. 
We have also attached the reference links below for your reference. 
 
Regards, 
Sriram Kiran 


Loader.
Up arrow icon