Customize color for pie chart slices


#1

Hi,

i am creating a pie chart and every slice corresponds to a specific color. So i have value 50 for green, value 20 for red, etc.

I just cannot find any configuration to set the color for the slice. Any advice on that?

Regards,
Daniel


#2

Hi Daniel,

Take a look at the documentation for SChartPieSeriesStyle (it inherits from SChartDonutSeriesStyle). Here you will see the property flavourColors. This is the array that is responsible for the colours of your pie charts individual slices.

Thanks,

Jan