2👍
✅
You are using V3 syntax of chart.js while using V2 so that wont work.
In V2 the title
and tooltip
config has to be at the root of your options object and tooltip
has to be renamed to tooltips
.
For all documentation you can read the V2 config to see where to specify things: https://www.chartjs.org/docs/2.9.4/
Or you can use the migration guide in reverse: https://www.chartjs.org/docs/master/getting-started/v3-migration.html
Source:stackexchange.com