Automatic colors assignment in chart.js 2.x doesn't work anymore, used to work in v. 1.x
问题 Using Chart.js 1.x I could create a pie chart and get the colors automatically assigned: <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.1.1/Chart.js"></script> <body> <canvas id="myChart" width="400" height="400"></canvas> <script> var ctx = document.getElementById("myChart").getContext("2d"); var data = [{"label":"Conservative","value":"5"},{"label":"Democratic","value":"6"}]; var myChart = new Chart(ctx).Pie(data); </script> </body> if I do the same with v 2.x <script src=