Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save zoom state #3248

Closed
Leggy7 opened this issue Feb 7, 2018 · 1 comment
Closed

Save zoom state #3248

Leggy7 opened this issue Feb 7, 2018 · 1 comment

Comments

@Leggy7
Copy link

Leggy7 commented Feb 7, 2018

I was wondering how could be possible to save current zoom position when performing an update of the chart with new data.

At the moment to update the chart I set brand new option (e.g. chart.setOption(default_page_load_options)) with all the default values i had at page load. Thus, if i changed the zoom level or the scrolling bar position, when update occurs all get reset.

I tried to save the _zr value before option set and assign it after but it ends up in infinite recursion.

please enlight me

@Leggy7
Copy link
Author

Leggy7 commented Feb 9, 2018

found out under _model.option.dataZoom

@Leggy7 Leggy7 closed this as completed Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant