zxcvbs
Posts: 3
Joined: Fri Jun 18, 2021 7:55 am

Candlestick and Realtime data displaying issues

Hi i'm trying to display Binance BTC data with Highcharts:
https://jsfiddle.net/yhs3mLau/3/
By default it only shows the last candlestick price range, the closing price candlestick line is overlapped in its body, i can only see the historical data if i somehow adjust the price range.
Image

How can i fix this?
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Candlestick and Realtime data displaying issues

Hi! Welcome to the official highcharts forum, and thanks for contacting us with your question!
The reason, you see your data separated is because there is a huge difference between your original data, and the one, that you are updating via sockets. You are unnecessarily dividing the original x value by 1000. Check those 2 demos. I guess, that the second one is the fix to your problem. Kind regards,
https://jsfiddle.net/BlackLabel/sjmdetao/
https://jsfiddle.net/BlackLabel/j7yLhzc6/
Paweł Lysy
Highcharts Developer
zxcvbs
Posts: 3
Joined: Fri Jun 18, 2021 7:55 am

Re: Candlestick and Realtime data displaying issues

Hi great. and is there any way to fix the lines representing the closing price, which are overlapping?
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Candlestick and Realtime data displaying issues

What do you mean by fixing the lines? Could you elaborate?
Paweł Lysy
Highcharts Developer
zxcvbs
Posts: 3
Joined: Fri Jun 18, 2021 7:55 am

Re: Candlestick and Realtime data displaying issues

Image
would be those black lines that are marked instead of closing the body properly.
pawelys
Posts: 962
Joined: Wed Sep 02, 2020 10:37 am

Re: Candlestick and Realtime data displaying issues

Hi! The problem is, you are placing multiple candlesticks in the same place. Check, if the values aren't overlapping. Kind regards,,
Paweł Lysy
Highcharts Developer

Return to “Highcharts Stock”