Labels disappear after chart update
Odrin opened this issue · comments
Egor Komarov commented
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
- Open example (https://codesandbox.io/s/plugin-example-forked-7ntsoq?file=/src/App.vue)
- Hover on any point
- Wait until
chart.update()
trigger (5 sec) - Labels disappear and appear again only after another point hovered
Environment
chart.js: 4.1.1
chartjs-plugin-datalabels: 2.2.0