Sorry I am trying to put color like the Line chart example in a pie chart but i am unable it only takes the first color for all the pie part :
Code html base-chart:
[labels]="pieChartLabels"
[colors]="pieChartColor"
[chartType]="pieChartType"
(chartHover)="chartHovered($event)">
color array : pieChartColor:any = [
{ // blue
backgroundColor: '#00285e'
},
{ // purple
backgroundColor: '#b4108b'
},
{ // green
backgroundColor: '#89ba17'
}];
Check this comment about doughnut charts, it's almost the same input: https://github.com/valor-software/ng2-charts/issues/251#issuecomment-225581645
Thank you, it works well.
Then close the issue :) 馃憤
Most helpful comment
Check this comment about doughnut charts, it's almost the same input: https://github.com/valor-software/ng2-charts/issues/251#issuecomment-225581645