It seems that since the whole data object is updated on the chart object, the chart loses all it's metadata and it redraws the whole chart from scratch. That is why the pie chart on your example always animates from 0 instead of just changing the slices dynamically.
I managed to get around it currently by changing the refreshChart function to the following
var refreshChart = function () {
var d = ko.toJS(chartBinding.data);
chartData.data.datasets[0].data = d.datasets[0].data;
activeChart.update();
activeChart.resize();
};
but of course this only works in the specific case of one dataset and nothing else changing...
It seems that since the whole data object is updated on the chart object, the chart loses all it's metadata and it redraws the whole chart from scratch. That is why the pie chart on your example always animates from 0 instead of just changing the slices dynamically.
I managed to get around it currently by changing the refreshChart function to the following
but of course this only works in the specific case of one dataset and nothing else changing...