bobby
Posts: 13
Joined: Fri Jan 29, 2021 3:56 am

Series disappearing when utilizing ghost series and mousewheel zoom

Hello once again highcharts!
I am utilizing a ghost series to allow users to peer back before the current series start date, and trigger data loading on debounced mouse wheel zoom out.
I currently have not yet implemented my data loading strategy so all that happens is the chart zooms out until it hits my arbitrary starting x value from my ghost series.

This issue may be resolved if i just implement my data loading strategy but I wanted to bring it up on the forum. When zooming out past current loaded series using mousewheel (not navigator, navigator doesn't have this behavior) The chart context seems to forget about the currently loaded series.

I'm thinking it will get resolved if I load data, but I wanted to bring the issue to your attention nonetheless.

Something potentially with having no yvalues and and the state getting all wacked out?

Illustrated here, I have an xaxis min for example, my code does not use the xaxis min however and I set my own extremes using the member function.

If you somewhat aggressively zoom out with scroll wheel you will get yourself in a state where you cannot return to the series once visible.

http://jsfiddle.net/nwLcyskf/7/

Thanks for the great work you do!
bobby
Posts: 13
Joined: Fri Jan 29, 2021 3:56 am

Re: Series disappearing when utilizing ghost series and mousewheel zoom

It seems that this issue only gets triggered once you zoom back in after already zooming out.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Series disappearing when utilizing ghost series and mousewheel zoom

Hi,
We appreciate you reaching out to us again!

It looks like without max value xAxis.max it couldn't get back to the value after zoom.
https://api.highcharts.com/highcharts/xAxis.max

Demo:
http://jsfiddle.net/BlackLabel/y1u5pL3r/

Version with column series:
http://jsfiddle.net/BlackLabel/8w0o3qkx/

Let me know what do you think about this solution.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Stock”