The DXPieSeries data source's protocol.
@protocol DXPieSeriesData
@property (nonatomic, weak) id<DXSeriesDataDelegate> delegate
Type | Description |
---|---|
id<DXSeriesDataDelegate> |
Returns the number of data points.
- (int)getDataCount
Type | Description |
---|---|
int | The number of data points. |
Returns the label of the data point at the specified index.
- (NSString *)getLabelByIndex:(int)index
Type | Name | Description |
---|---|---|
int | index | The index of data point whose label should be returned. |
Type | Description |
---|---|
NSString * | The label of a data point at the specified index. |
Returns the value of the data point at the specified index.
- (double)getValueByIndex:(int)index
Type | Name | Description |
---|---|---|
int | index | The index of a data point whose value should be returned. |
Type | Description |
---|---|
double | The value of a data point at the specified index. |