1👍
✅
The problem is that you add the labels
to the wrong position in the chart configuration.
Instead of…
barChartProjekt.labels = newLabelsArray;
try this…
barChartProjekt.data.labels = newLabelsArray;
Source:stackexchange.com