[Chartjs]-ChartJS chart not scaling after adding values

2👍

You may change the "data: { labels: [],}" array as well.

Push values into the labels array after push data to datasets.data, and the chart will be changed.

options.data.labels.push('another color')

Or rebuild the whole labels and datasets arrays and the chart will be rescaling.

You can change the existing values in there and it will be rerendered.

Leave a comment