Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
15
igx-doughnut-chart colour
posted

Hello, 

I was wondering if there is a way how to achieve a stable custom colour palate for a doughnut/pie chart. 

Lets say this is the data: 

private testData = [
    { statusName: 'Status 1', agentCount: 9 },
    { statusName: 'Status 2', agentCount: 18 },
    { statusName: 'Status 3', agentCount: 1 },
    { statusName: 'Status 4', agentCount: 14 },
    { statusName: 'Status 5', agentCount: 3 },
    { statusName: 'Status 6', agentCount: 14 },
  ];
 

I would like to have "status 1" always green, "status 2" always red and so on. 
Right now it seems that the colour will shift from the default pallet when a value is skipped over if it is 0.

Also how can I change the colour slice pallet please?

Parents Reply Children
No Data