ORKIBGraphChartViewDataSource Class Reference

Inherits from NSObject
Conforms to ORKGraphChartViewDataSource
Declared in ORKGraphChartView.m
ORKGraphChartView_Internal.h

– numberOfPlotsInGraphChartView:

Asks the data source for the number of plots to be plotted by the graph chart view.

- (NSInteger)numberOfPlotsInGraphChartView:(ORKGraphChartView *)graphChartView

Parameters

graphChartView

The graph chart view asking for the number of plots.

Return Value

The number of plots in the graph chart view.

Declared In

ORKGraphChartView.h

– graphChartView:numberOfDataPointsForPlotIndex:

Asks the data source for the number of value points to be plotted by the graph chart view at the specified plot index.

- (NSInteger)graphChartView:(ORKGraphChartView *)graphChartView numberOfDataPointsForPlotIndex:(NSInteger)plotIndex

Parameters

graphChartView

The graph chart view asking for the number of value points.

plotIndex

An index number identifying the plot in the graph chart view. This index is 0 in a single-plot graph chart view.

Return Value

The number of range points in the plot at plotIndex.

Declared In

ORKGraphChartView.h

– graphChartView:titleForXAxisAtPointIndex:

Asks the data source for the title to be displayed adjacent to each division in the x-axis (the number returned by numberOfDivisionsInXAxisForGraphChartView:). You can return nil from this method if you don’t want to display a title for the specified point index.

- (NSString *)graphChartView:(ORKGraphChartView *)graphChartView titleForXAxisAtPointIndex:(NSInteger)pointIndex

Parameters

graphChartView

The graph chart view asking for the title.

pointIndex

The index of the specified x-axis division.

Return Value

The title string to be displayed adjacent to each division of the x-axis of the graph chart view.

Discussion

If this method is not implemented, the x-axis has no titles.

See also: numberOfDivisionsInXAxisForGraphChartView:.

Declared In

ORKGraphChartView.h