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'm trying to call resetZoom on a button click. I don't like the default button, and would like my "reset zoom" button to be next to the rest of my UI. Looking at chartjs-plugin-crosshair.js i found this:
So i would assume calling graph.crosshair.reset would call resetZoom and reset the zoom, but that does not happen. The default button does disappear. Loggin graph.crosshair.reset to console gives me function () so i am finding that correctly.
Maybe i've got it all wrong, but i can't seem to figure this out, and any help would be lovely.
The text was updated successfully, but these errors were encountered:
I'm trying to call
resetZoom
on a button click. I don't like the default button, and would like my "reset zoom" button to be next to the rest of my UI. Looking at chartjs-plugin-crosshair.js i found this:So i would assume calling
graph.crosshair.reset
would callresetZoom
and reset the zoom, but that does not happen. The default button does disappear. Loggingraph.crosshair.reset
to console gives mefunction ()
so i am finding that correctly.Maybe i've got it all wrong, but i can't seem to figure this out, and any help would be lovely.
The text was updated successfully, but these errors were encountered: