Skip to content

Commit

Permalink
Merge pull request chartjs#2421 from mchateloin/pie-demo-randomize-co…
Browse files Browse the repository at this point in the history
…lors

Randomize data button randomizes colors in pie chart demo
  • Loading branch information
etimberg committed Apr 29, 2016
2 parents adc430f + 3067249 commit 99c2d67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/pie.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
$.each(config.data.datasets, function(i, piece) {
$.each(piece.data, function(j, value) {
config.data.datasets[i].data[j] = randomScalingFactor();
//config.data.datasets.backgroundColor[i] = 'rgba(' + randomColorFactor() + ',' + randomColorFactor() + ',' + randomColorFactor() + ',.7)';
config.data.datasets[i].backgroundColor[j] = randomColor(0.7);
});
});
window.myPie.update();
Expand Down

0 comments on commit 99c2d67

Please sign in to comment.