[Chartjs]-How can I programmatically change the label of the Y axis in Chart.JS

1👍

This is because you need to put it in the title namespace. So your statement must be: myChart.options.scales.y.title.text=yaxislabel;. For it to show up you also need to make sure it is enabled by calling: myChart.options.scales.y.title.display = true;

Leave a comment