i try to add dataset to chartjs using a for loop but it only add the first element. https://jsfiddle.net/sp1hkb3r/
for (i = 0; i < performances.length; i++) {
console.log(i)
console.log(performances.length)
myChart.data.datasets.push(getDataset(performances[i]));
myChart.update();
}
return 0 3 in console, and chartjs's datasets doesn't have performances[1] and performances[2] data