-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Charts global override for tooltips doesn't seem to work anymore #11107
Labels
Comments
@charlesmass2 maybe I'm wrong but doughnut controller is not overriding any tooltip configuration anymore (from version 4, see migration giude to 4). Chart.js/src/controllers/controller.doughnut.js Lines 85 to 125 in 1684cf7
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior
As stated in the documentation here, we should be able to set global overrides for the tooltips.
In v3, I could globally disable the tooltips using the following:
Current behavior
When using the code above, I get the following error:
Cannot read properties of undefined (reading 'callbacks')
When outputting the content of Chart overrides in the console, I see this:
Which suggests the documentation is wrong ?
Reproducible sample
https://codepen.io/lamasse/pen/WNKLbeV
Optional extra steps/info to reproduce
Please open the console in the codepen to see the issue
Possible solution
It might be a documentation issue only.
Context
No response
chart.js version
v4.2.0
Browser name and version
Chrome 109
Link to your project
No response
The text was updated successfully, but these errors were encountered: