Chartjs-How to assign specific colors to data items in a doughnut chart in Angular Chart?

1👍

Have you tried:

<canvas id="doughnut" class="chart chart-doughnut"
  chart-data="data" chart-labels="labels" chart-colours="colors">
</canvas> 

You are also missing # in color codes:

So this should be :

$scope.colors = [
    "#1E824C", // oranges are orange :)
    "#1E824C",  // bananas are yellow 
    "#1E824C"];

Leave a comment