- (unsigned int)numberOfExplodedPartsInPieChartView:(SMPieChartView *)inPieChartView;
This method is optional. However, if this is implemented
-pieChartView:rangeOfExplodedPartIndex: must also be implemented.
Asks the datasource to report the number of groups of exploded slices
in a particular pie view. Exploded slices are moved out from the center of the chart
by the explodeDistance.
Result: Should return the number of exploded groups of slices.
Name Description inPieChartView The pie view making the call.
- (unsigned int)numberOfSlicesInPieChartView:(SMPieChartView *)inPieChartView;
Asks the datasource to report the number of slices to be drawn in a particular pie view.
Result: Should return the number of slices to draw.
Name Description inPieChartView The pie view making the call.
- (NSDictionary *)pieChartView:(SMPieChartView *)inPieChartView attributesForSliceIndex:(unsigned int)inSliceIndex;
Implementing this method is optional. Asks the datasource for the drawing attributes to use when drawing a particular slice. If the datasource does not respond to this message, or returns nil, default values are used. See the constants section of the documentation for keys that can be used.
Result: A dictionary of attributes to use to draw the slice; can return nil if default values are wanted.
Name Description inPieChartView The pie view making the call. inSliceIndex The zero based slice index to return.
- (double)pieChartView:(SMPieChartView *)inPieChartView dataForSliceIndex:(unsigned int)inSliceIndex;
Either this method or -pieChartViewArrayOfSliceData: must be implemented.
Asks the datasource to report the actual data for a particular slice. The data should
be returned as a double. Any scale can be used, but all slices should use the same scale.
Result: A double.
Name Description inPieChartView The pie view making the call. inSliceIndex The zero based slice index to return.
- (NSRange)pieChartView:(SMPieChartView *)inPieChartView rangeOfExplodedPartIndex:(unsigned int)inIndex;
This method is optional. However, if this is implemented
-numberOfExplodedPartsInPieChartView: must also be implemented.
Asks the datasource to report the range of slices of an exploded group. Exploded slices
are moved out from the center of the chart by the explodeDistance. For example,
if the first two slices should be exploded, this should return a range with location
equal to 0 and length equal to two.
Result: A range of an exploded group of slices.
Name Description inPieChartView The pie view making the call. inIndex The zero based slice index to return.
- (NSArray *)pieChartViewArrayOfSliceData:(SMPieChartView *)inPieChartView;
Either this method or -pieChartView:dataForSliceIndex: must be implemented.
This method asks the datasource to report all slice data in an NSArray. The slice
data should be an array of objects that respond to -doubleValue (like NSNumber).
Result: An NSArray of objects. Should not be nil.
Name Description inPieChartView The pie view making the call.
© 2003-2004 Snowmint Creative Solutions LLC (Last Updated 8/29/2004)