Frage

It seems the default for a CPTPieChart is to highlight or offset from the rest of the chart the largest segment.

I would like to turn this highlighting / offset off or perhaps change which one is.

War es hilfreich?

Lösung

The default is no offset for any pie slice. If you implement one of the following datasource methods, you can provide offset values for any or all slices. Return zero (0) for a given index to indicate no offset for the corresponding slice.

-(NSArray *)radialOffsetsForPieChart:(CPTPieChart *)pieChart recordIndexRange:(NSRange)indexRange;
-(CGFloat)radialOffsetForPieChart:(CPTPieChart *)pieChart recordIndex:(NSUInteger)idx;
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top