Before displaying the new data, the chart data and labels should be reset.
Let’s say we have
<canvas id=”bar2″ class=”chart chart-bar”
chart-data=”dataAverageWorkingDaysToResolve” chart-labels=”labels2″
chart-options=”{tooltipTemplate: ‘<%=value%> Day(s)’ }”
</canvas>
And on js file we should have
$scope.dataAverageWorkingDaysToResolve = null;
$scope.labels2 = null;
Also, the canvas should be held in a div with ng-if not ng-show
That’s pretty much it..