Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNot clear how to override the default tooltip #6216
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
Thanks, this is indeed strange. The actual up-to-date code can be found here: Chart.js/src/core/core.tooltip.js Line 67 in 2f874fd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Documentation Is:
The problem
When you want to alter the default tooltip for a chart, it is not clear how to do it:
https://www.chartjs.org/docs/latest/configuration/tooltip.html#label-callback
I had to dig in the source code of chart.js to see what the default callback looked like.
My proposal for Changes
Replace the example in the documentation with an example that actually works:
Example