Chartjs-How do I change the colours of specific labels in ng2-charts?

0👍

colors must be defined as an array of interface Color according to the following code snippet:

import { Color } from 'ng2-charts';
...
public doughnutChartColor: Color[] = [
    { backgroundColor: 'green' },
    { backgroundColor: 'red' },
    { backgroundColor: 'blue' }
];

Leave a comment