[Chartjs]-Modify the labels in chart.js when I update the chart

3๐Ÿ‘

โœ…

You can update like as follows

chart.config.data.labels = newLabels // you can pass the new labels
chart.update()

0๐Ÿ‘

Try it also

chart.data.labels = newLabels
chart.update()

Leave a comment