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

Disable auto zoom-out after toggling datasets, when clicking on the legend. #817

Open
VandreiVer opened this issue May 17, 2024 · 2 comments

Comments

@VandreiVer
Copy link

Take the most basic line chart with the zoom plugin and 2 datasets.

  1. Zoom in on the chart with both datasets visible.
  2. Click on the legend to hide one of the datasets.

Expectations:
The chart zoom level remains the same so that I don't have to zoom in again to whichever data point I was interested in.

Actual result:
The chart is updated and the zoom level is back to the default one.

Findings:
Trying to hook into the onZoomStart and cancel the zoom did not work. The event was not the one being triggered.

@baobaoejiahao
Copy link

I am having the same issue. Can someone come help?

@baobaoejiahao
Copy link

I have faced the smiliar issue that I have created a customized contextmenu by double click. When I double click, the chart automatically zooms out....

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

2 participants