Chart.js
Chart.js copied to clipboard
A tooltip appears in the center of the chart on chart hover after hiding all data via legend click
Expected behavior
No tooltip should appear because the chart is visually hidden.
Current behavior
A tooltip appears when the mouse pointer hovers in the center of the chart after all legend items are clicked (all data is hidden).
Reproducible sample
https://codepen.io/teodorachiosa/pen/dyEzLKB
Optional extra steps/info to reproduce
- Hide all data by clicking on all labels in the legend
- Hover in the center of the chart -> a tooltip will appear
Possible solution
No response
Context
No response
chart.js version
4.4.2
Browser name and version
Chrome 125.0.6422.147
Link to your project
No response