Open chkpnt opened 1 year ago
The tooltip plugin can be added to a single chart by adding it the the plugins array:
plugins
const myChart = new Chart(ctx, { plugins: [..., Tooltip], type: 'pie', ... })
It isn't working. The tooltip plugin needs to be registered globally: Chart.register(..., Tooltip);
Chart.register(..., Tooltip);
https://github.com/chkpnt/chartjs-issue11111/blob/main/js/main.js
Just run npm run start.
npm run start
No response
v4.2.0
Firefox 109.0.1
https://github.com/chkpnt/chartjs-issue11111
Nice issue number! 🥳
Expected behavior
The tooltip plugin can be added to a single chart by adding it the the
plugins
array:Current behavior
It isn't working. The tooltip plugin needs to be registered globally:
Chart.register(..., Tooltip);
Reproducible sample
https://github.com/chkpnt/chartjs-issue11111/blob/main/js/main.js
Optional extra steps/info to reproduce
Just run
npm run start
.Possible solution
No response
Context
No response
chart.js version
v4.2.0
Browser name and version
Firefox 109.0.1
Link to your project
https://github.com/chkpnt/chartjs-issue11111