0👍
Found a solution:
$('#btn-load').on('click', function(){
myChart.data.datasets[0] = data2['datasets'][0];
myChart.data.labels = data2['labels'];
myChart.update();
});
- [Chartjs]-Creating a horizontal bar chart extension on Chart.js
- [Chartjs]-How to draw outer labels for polar chart using ng2-charts and chart.js at fixed positions outside the rings?
Source:stackexchange.com