chartjs / chartjs-plugin-datalabels

Chart.js plugin to display labels on data elements
https://chartjs-plugin-datalabels.netlify.app
MIT License
863 stars 459 forks source link

Update datalabels when chart is updated. #412

Closed iampapagray closed 4 months ago

iampapagray commented 4 months ago

I have a model where users can update the chart (mainly, sorting/changing the order of the data in the datasets and labels on the y axis.). This works fine with chart.update() but when the update is done, the labels generated on the barcharts, do not change. Is there a way to trigger a change for datalabels after the chart is updated?