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
45
Assign colors to specific categories for charts in Ignite UI Angular
posted

Hi Guys, 

I am new to Igniute UI chart for angular i was wondering how i can Assign certain colors to a category in a Pie chart

Example : var ChartData = [{Label: 'slice 1', Value: 10}, {Label: 'slice 2', Value: 10}, {Label: 'slice 3', Value: 10}]

I would like to permanently assign, example RED to SLICE 1 and BLUE to SLICE 2 and GREEN to Slice 3. A example would be appreciated and maybe even a insight on how this would work on all the charts in general