Skip to content

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

@teodorachiosa

Description

@teodorachiosa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions