1๐
โ
You have to change data directly in chart object and then call update method of this object :
$('#btn-next').click(function () {
chart.data.datasets[0].data = workedHoursData.splice(0, counter);
chart.update();
counter += counter;
});
Source:stackexchange.com