ChartJS plugin with live label update

👍:0

You need to do an update() after updating the labels. And you have to update the labels on the chart object.

window.days = function()
{
    myLineChart.scale.xLabels = ["01", "02", "03", "04", "05", "06", "07"]; // Days
    myLineChart.update();
} 

Fiddle – https://jsfiddle.net/rxoLjd92/

Leave a comment