-
Notifications
You must be signed in to change notification settings - Fork 87
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
chartjs3 version automatically enabled on all scripts upon script load #79
Comments
Temporary workaround is to disable the plugin on all charts that you don't want it activated on
|
Hi @vincepolston, In the newest version the plugin is no longer auto-registered, can you check whether that works for you? |
Hi @AbelHeinsbroek Registered as:
I am using the Bar Chart on the one Vue Router page and Line Chart (which should have a crosshair plugin enabled) on the other |
May it be related to:
Even though initial enabled flag is set as false the BTW, for some reason Chart.js 3.4.0+ has internal unsafe check and it throws an error if |
I've been playing with the build from the chartjs3 branch and ran into an issue. It appears the plugin is registered and enabled for all charts by default. This causes problems because of some compatibility issues with other chartjs plugins.
I have tinkered with it and don't see a way to either A) not have it automatically enabled for all charts or B) disable it on charts that I don't want it on.. so far I have been unsuccessful at both.
I have tried setting
Chart.register(crosshairPlugin);
toChart.unregister(crosshairPlugin);
which does not work. This just causes the plugin to not be usable at all.The text was updated successfully, but these errors were encountered: