dizzy
Posts: 64
Joined: Mon Aug 01, 2022 5:28 pm

Zooming issue

Fri Aug 12, 2022 2:33 am

I have an issue that is best shown by attaching a screen recorded action - but i am not able to attach that type of file here. Is there a place where i can do so?

I will nonetheless try to describe the issue. When i view a chart that shows the entirety of my data, i am able to use the mouse to drag and zoom fine. This is what the view of all data looks like
chart1.png
chart1.png (108.74 KiB) Viewed 199 times
However, next i click on the '1y' button and then try to zoom in on that view with the mouse drag. This however, zooms in way too much. attached it what it looks like when i drag/zoom after clicking on the 1y view
chart2.png
chart2.png (10.36 KiB) Viewed 199 times
Is there a reason for this behavior?

kamil.m
Posts: 676
Joined: Thu May 19, 2022 1:33 pm

Re: Zooming issue

Fri Aug 12, 2022 7:50 am

Hi there,

For screen recording, you can use something like Loom, or any other screen capture and host it somewhere in the web. Alternatively, you can also use software like LICEcap which allows you to record .gif files which you can attach to the post on our forum.

It would be much easier to understand the problem and work on the solution if you could reproduce it in an online editor such as JSFiddle.

Besides that, could you please confirm if the same issue occurs in the chart linked below?
https://www.highcharts.com/demo/stock/lazy-loading

Waiting for your reply,
Best regards!
Kamil Musiałowski
Highcharts Developer

dizzy
Posts: 64
Joined: Mon Aug 01, 2022 5:28 pm

Re: Zooming issue

Sat Aug 13, 2022 2:40 am

I believe the problem is related to the amount of data - i dont think that is easily reproducible using fiddle.

Let's try this link to see if you are able to view the video showing the issue: https://drive.google.com/file/d/1DfzVWu ... sp=sharing

As far as the link you provide - its kind of difficult to tell because when i zoom using your link, the dates at the bottom make it hard to see if its working properly - it only shows month, day and a time - so i can tell what year im looking at. also, it seems to change the intervals of the data as i zoom in - but im not sure

dizzy
Posts: 64
Joined: Mon Aug 01, 2022 5:28 pm

Re: Zooming issue

Sat Aug 13, 2022 3:39 am

I believe i may have been able to reproduce this issue: https://jsfiddle.net/dizzy0ny/3ukcexvh/232/

To reproduce follow these steps:
1. click on the '1m' zoom
2. then drag from the first bar (july 12, 2022) to the 5th bar (july 18th, 2022) to zoom in further
3. Notice that it actually zooms in to August 7th, 2022 to Aug 12th, 2022

I believe this may have to do with the scatter plot series. If i change that to a 'line'. it works fine. I dont know why though..whether this my fault or a bug?

kamil.m
Posts: 676
Joined: Thu May 19, 2022 1:33 pm

Re: Zooming issue

Tue Aug 16, 2022 9:03 am

Hi there, thank you for reproducing that issue.

Now I know what you meant in the previous post. In fact, it looks like it's a bug - and it has already been reported on GitHub.
Feel free to use the workaround provided there, and follow the Issue for any future updates.

https://github.com/highcharts/highcharts/issues/17128

Regards!
Kamil Musiałowski
Highcharts Developer

dizzy
Posts: 64
Joined: Mon Aug 01, 2022 5:28 pm

Re: Zooming issue

Fri Aug 19, 2022 3:34 am

Thanks much kamil. trying the work around does solve this issue. however it introduces another problem..zooming in now adds weekend dates...cause gaps in the chart when zoomed in.
I will be watching this issue hoping for a fix.

Thanks

kamil.m
Posts: 676
Joined: Thu May 19, 2022 1:33 pm

Re: Zooming issue

Fri Aug 19, 2022 7:37 am

You're welcome, it's good to hear that the workaround is working for you right now. Feel free to watch and comment the aformentioned GitHub topic if you encounter any additional issues.

Best regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”