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
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