You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that after a first zoom if I try to change the mode, for example with chart.config.options.plugins.zoom.zoom.mode = "y", the mode is succesfully changed, but the zoom level gets resetted.
I made a sandbox showcasing this issue. In the example, try to change the zoom mode, zoom out, then change the zoom mode again to see the issue.
Is this intended? And if so, is there a workaround for this?
Thanks in advance
The text was updated successfully, but these errors were encountered:
francescopenna
changed the title
Changing zoom mode resets the zoom level
Changing zoom mode (drag) resets the zoom level
Apr 23, 2024
I'd tend to think this has something to do with vue-chartjs. Try zooming out multiple times (say 5) and then change the mode. Maybe it also clones the animations in the options or something like that.
I am using a chart with this zoom configuration (pan is disabled):
I noticed that after a first zoom if I try to change the mode, for example with
chart.config.options.plugins.zoom.zoom.mode = "y"
, the mode is succesfully changed, but the zoom level gets resetted.I made a sandbox showcasing this issue. In the example, try to change the zoom mode, zoom out, then change the zoom mode again to see the issue.
Is this intended? And if so, is there a workaround for this?
Thanks in advance
The text was updated successfully, but these errors were encountered: