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

[Bug]: Tooltip references invalid element after chart data updates #1063

Closed
1 task done
mihai-peteu opened this issue Dec 6, 2023 · 3 comments
Closed
1 task done

Comments

@mihai-peteu
Copy link
Contributor

mihai-peteu commented Dec 6, 2023

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

If the chart data changes in the background, while an existing tooltip is shown (triggered by a previous hover action), then the mouse is moved again - chart.js will trigger an inChartArea = false event, attempting to reuse the old/invalid active elements.

Issue:
chartjs/Chart.js#11315

Fix PR:
chartjs/Chart.js#11596

Reproduction

chartjs/Chart.js#11596 (comment)

chart.js version

v4.1.1

vue-chartjs version

v5.2.0

Possible solution

The bug fix is included in this chartjs release: https://github.com/chartjs/Chart.js/releases/tag/v4.4.1

Specifically, by this PR: chartjs/Chart.js#11596

@mihai-peteu
Copy link
Contributor Author

mihai-peteu commented Dec 6, 2023

@apertureless - chart.js v4.4.1 should fix this issue.

PR to bump the version
#1064

@apertureless
Copy link
Owner

PR is merged and new version released.
Should be fixed.

@mos2st
Copy link

mos2st commented Aug 7, 2024

Hi I can still reproduce this issue using chart.js v4.4.3 and ng2-charts v5.0.4

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

No branches or pull requests

3 participants