Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

A tooltip appears in the center of the chart on chart hover after hiding all data via legend click

Open teodorachiosa opened this issue 8 months ago • 1 comments

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). image

Reproducible sample

https://codepen.io/teodorachiosa/pen/dyEzLKB

Optional extra steps/info to reproduce

  1. Hide all data by clicking on all labels in the legend
  2. 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

teodorachiosa avatar Jun 10 '24 08:06 teodorachiosa