Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
teodorachiosa opened this issue Jun 10, 2024 · 1 comment

Comments

@teodorachiosa
Copy link

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

@huqingkun
Copy link
Contributor

Can I take this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants