views:

42

answers:

1

I am using core plot in one of my iPhone projects. Is it possible to change the color for a selected slice in a pie chart (using CPPieChartDataSource, CPPieChartDelegate)?

+1  A: 

Implement the following method in your datasource:

-(CPFill *)sliceFillForPieChart:(CPPieChart *)pieChart recordIndex:(NSUInteger)index; 

CPFill can be a color, image, or gradient.

Eric Skroch
I want to change the color of a particular slice when it is selected. Is that possible?