score:0

Found a solution:

$('#btn-load').on('click', function(){
    myChart.data.datasets[0] = data2['datasets'][0];
    myChart.data.labels = data2['labels'];
    myChart.update();
});

http://codepen.io/marcelo2605/pen/zogjvj?editors=0010


Related Query