-
Notifications
You must be signed in to change notification settings - Fork 12k
Closed
Labels
Description
Expected Behavior
External tooltips should work as mentioned in the documentation
Current Behavior
The external tooltip function issues a JavaScript error on non-existant object tooltipModel.bodyFont.
Possible Solution
None known to me
Steps to Reproduce
I have no complete codepen demo, but it's easy to create:
- In the settings, refer to https://www.chartjs.org/dist/master/chart.min.js, to test 3.0.0-rc
- Copy and paste from the documentation: https://www.chartjs.org/docs/master/configuration/tooltip#external-custom-tooltips (the whole "plugins" section)
- As soon as a tooltip is shown, the JavaScript error appears in the console:
Uncaught TypeError: tooltipModel.bodyFont is undefined
Inspecting the tooltipModel, there is no object of this type. May just be a documentation error, though.
Context
I'm testing the external tooltips functionality, as I'm using it in my project, which I'm trying to port to Chart.js 3
Environment
- Chart.js version: 3.0.0-rc
- Browser name and version: Firefox 86.0.1
- Link to your project: -