hktk
Posts: 2
Joined: Wed Sep 20, 2023 1:27 pm

RangeSelector is lost

Wed Sep 20, 2023 1:52 pm

Hello.
When RangeSelector is set to 1 week and ScrollBar is moved, the "1 week" of the specified RangeSelector is removed.
Is there any way to prevent it from coming off?
To reproduce, open the attached demo, press the 1 week button, and move the ScrollBar to the left.
DEMO : https://jsfiddle.net/yzkc3rh4/

jakub.j
Posts: 866
Joined: Tue Jan 24, 2023 11:14 am

Re: RangeSelector is lost

Thu Sep 21, 2023 8:23 am

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

It seems that it is a bug, so I have created a GitHub issue for it.
You can watch this issue in the link below and track any information and workarounds for this one.

GH Issue: https://github.com/highcharts/highcharts/issues/19808

As a workaround, you can disable xAxis.ordinal, see demo:

Demo: https://jsfiddle.net/BlackLabel/tjzp1qkw/

Feel free to ask any further questions!
Best regards
Jakub
Jakub
Highcharts Developer

hktk
Posts: 2
Joined: Wed Sep 20, 2023 1:27 pm

Re: RangeSelector is lost

Thu Sep 21, 2023 9:15 am

Nice to meet you jakub.j!
Thank you for your answer!
Additional information, the problem did not occur if the data was for one year.
We will also consider this in xAxis.ordinal.
Thank you very much for your help in resolving the bug.
(Translated by DeepL as I do not speak English)

jakub.j
Posts: 866
Joined: Tue Jan 24, 2023 11:14 am

Re: RangeSelector is lost

Thu Sep 21, 2023 10:09 am

You're welcome!

I pointed out in the issue, when the range is smaller, the problem doesn't occur.

​If you have further inquiries, you may reach out to me at any time.
Best regards
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Stock”