Conforms to NSObject
Declared in IGSparklineView.h

Overview

IGSparklineViewDataSource protocol represents the data model object used by the Sparkline chart. It provides the means to supply the sparkline chart with data. This protocol can be implemented by the user to provide full control over the data that goes into the sparkline chart. Alternatively, IGSparklineViewDataSource can be used to simply that process.

Instance Methods

allPointsForSeries:

This method can be used to supply the sparkline chart with a range of data points. If this method is implemented the datasource will not respond to numberOfPointsInSparklineChartView or pointAtIndex.

- (NSArray *)allPointsForSeries:(IGSparklineView *)sparklineView

Parameters

sparklineView

Reference to the pie chart.

Return Value

Returns a range of initialized points.

Declared In

IGSparklineView.h

numberOfPointsInSparklineView:

This method specifies the number of data items in the sparkline chart.

- (NSInteger)numberOfPointsInSparklineView:(IGSparklineView *)sparklineView

Parameters

sparklineView

Reference to the sparkline chart.

Return Value

Returns the number of data items in the sparkline chart.

Declared In

IGSparklineView.h

sparkLineChartView:pointAtIndex:

This method supplies an IGDataPoint reference to the pie chart at a given index.

- (IGDataPoint *)sparkLineChartView:(IGSparklineView *)sparklineView pointAtIndex:(NSInteger)index

Parameters

sparklineView

Reference to the sparkline chart.

index

The current index.

Return Value

Returns an initialized IGDataPoint to be used by the sparkline chart.

Declared In

IGSparklineView.h