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

pie chart segment stays selected after chart update #11853

Open
mos2st opened this issue Aug 6, 2024 · 0 comments
Open

pie chart segment stays selected after chart update #11853

mos2st opened this issue Aug 6, 2024 · 0 comments

Comments

@mos2st
Copy link

mos2st commented Aug 6, 2024

Expected behavior

I'm using a custom tooltip (external) that shows a custom tooltip on click. When closing the tooltip I want to update the chart and reset the pie segment that is in a "selected" state after being clicked. I'd expect that after using .update() or render() the highlighted, selected pie segment will be retested and the the tooltip can be opened by clicking at the same segment again

Current behavior

Pie chart segment is still selected, tooltip cannot be opened again.

Reproducible sample

https://codepen.io/Dlo31833/pen/WNqOdGY?editors=1111

Optional extra steps/info to reproduce

See codepen.

Possible solution

No response

Context

No response

chart.js version

4.4.3

Browser name and version

No response

Link to your project

No response

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

1 participant