lily779
Posts: 1
Joined: Fri Apr 05, 2024 9:06 am

Candlestick chart bounces while updating

Hello, I try to implement candlestick chart, however Im facing with updating issue.

When I try to update data series information my chart bounces and changes interval.

In this example on "Load" button click I expect last candlestick to update and have modified value, it does however it also changes interval(I think I call it properly), can you please check this demo and help me what is wrong with my code?

this is before I click load
Image (or see url: https://ibb.co/r3NfhcS)

and this is after I click load, see last candle is updated but it changed frequency
Image (or see url: https://ibb.co/6R05KtM)

this is demo https://jsfiddle.net/fvjo2h4z/72/
bastss
Site Moderator
Posts: 1317
Joined: Wed Oct 17, 2018 10:59 am

Re: Candlestick chart bounces while updating

Hello,

Welcome to our forum and thanks for contacting us with your question!

Well, it's a strange case, seems that it occurs only in this particular setting:
- the dataGrouping is on, so after changing the last point values, the dataGrouping calculates a new points array, and their positions, width, etc is different for this particular chart width configuration.
- it works properly if you delete the yAxis label.align as left, or change the container width,
- you can also disable the dataGrouping: https://jsfiddle.net/BlackLabel/gnj1x6rd/, more about this feature: https://api.highcharts.com/highstock/pl ... taGrouping
Sebastian Wędzel,
Highcharts Developer
maurix70
Posts: 6
Joined: Mon Apr 22, 2024 12:14 pm

Re: Candlestick chart bounces while updating

Hello, I believe I have the same issue: my goal is to set a grouping to a data value (which can be 5 minutes, 15 minutes, or, as in the example of your demos, daily, weekly, or monthly) from a list/menu and have it maintained under any condition, unless a new grouping value is set. As you can see from the example of your demo (https://jsfiddle.net/39gah0tk/), setting a value (e.g., 'Week'), the chart correctly performs a weekly grouping, but if I move the zoom level from the navigator, suddenly the grouping loses its references and returns to a daily grouping.

Do you have any idea how to fix it?

Thanks.

M
andrzej.b
Site Moderator
Posts: 307
Joined: Mon Jul 15, 2024 12:34 pm

Re: Candlestick chart bounces while updating

Hi,

This is a bug on our side; please follow the below ticket on GitHub for updates and possible workarounds: https://github.com/highcharts/highcharts/issues/22159

Kind regards,
Andrzej
Highcharts Developer

Return to “Highcharts Stock”