Chartjs-Chart.js: chart does not update

2👍

I think you are missing a little bit in your changedata function, something like

function changedata(){
    testChart.data.datasets[0].data = ['4', '3', '2', '1', '2', '3', '4'];
    testChart.update();
}

Leave a comment