0👍
use instead:
$scope.labels = []; // -> $scope.labels.splice(0);
$scope.data = []; // -> $scope.data .splice(0);
//... something else
- Chartjs-Angular 8 and ng2 charts – Updating labels and data
- Chartjs-How to use chartJS to show breakdown of selected data
0👍
Fixed the easiest possible way using Underscore.js
Thanks for the help
Source:stackexchange.com