Changing PieChart series colors


#1

Good day.

I am unable to find any way to change pie chart slices colors. I managed to change them for line chart, but have problems with pie.

I thank you in advance for your help.


#2

Found out how:

In SChartPieSeries enable showFlavour and define flavour colors:

pieSerie.style.showFlavour = YES;

pieSerie.style.flavourColors = [NSMutableArray arrayWithObjects:[UIColor redColor],[UIColor blackColor],nil];  //Just for demo


#3

Found out how:

In SChartPieSeries enable showFlavour and define flavour colors:

pieSerie.style.showFlavour = YES;

pieSerie.style.flavourColors = [NSMutableArray arrayWithObjects:[UIColor redColor],[UIColor blackColor],nil];  //Just for demo


#4

Duplicate post because of internet lag…