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

Labels disappear after chart update #359

Open
Odrin opened this issue Dec 29, 2022 · 0 comments
Open

Labels disappear after chart update #359

Odrin opened this issue Dec 29, 2022 · 0 comments

Comments

@Odrin
Copy link

Odrin commented Dec 29, 2022

Current behaviour

If only active points labels are displayed (display: (context) => context.active) and chart.update() triggered while some labels are displayed, these labels disappear until another point become active.

Expected behaviour

chart.update() don't breaks active points label visibility.

Steps to Reproduce

  1. Open example (https://codesandbox.io/s/plugin-example-forked-7ntsoq?file=/src/App.vue)
  2. Hover on any point
  3. Wait until chart.update() trigger (5 sec)
  4. Labels disappear and appear again only after another point hovered

Environment

chart.js: 4.1.1
chartjs-plugin-datalabels: 2.2.0

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

1 participant