Conforms to NSObject
Declared in IGFunnelChartView.h

Overview

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

Tasks

Instance Methods

allPointsForSeries:

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

- (NSArray *)allPointsForSeries:(IGFunnelChartView *)funnelChartView

Parameters

funnelChartView

Reference to the funnel chart.

Return Value

Returns a range of initialized points.

Declared In

IGFunnelChartView.h

funnelChartView:pointAtIndex:

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

- (IGDataPoint *)funnelChartView:(IGFunnelChartView *)funnelChartView pointAtIndex:(NSInteger)index

Parameters

funnelChartView

Reference to the funnel chart.

index

The current index.

Return Value

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

Declared In

IGFunnelChartView.h

numberOfPointsInFunnelChartView:

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

- (NSInteger)numberOfPointsInFunnelChartView:(IGFunnelChartView *)funnelChartView

Parameters

funnelChartView

Reference to the funnel chart.

Return Value

Returns the number of data items in the funnel chart.

Declared In

IGFunnelChartView.h

objectAtIndex:

Returns the original data object at a specified index.

- (NSObject *)objectAtIndex:(NSInteger)index

Parameters

index

Index of the data object to be returned.

Return Value

Returns the data object at a specified index.

Declared In

IGFunnelChartView.h

objectForDataPoint:inFunnelChartView:

Returns the original data object based on its corresponding data point.

- (NSObject *)objectForDataPoint:(IGDataPoint *)point inFunnelChartView:(IGFunnelChartView *)funnelChartView

Parameters

point

IGDataPoint that represents the original object.

funnelChartView

Reference to the funnel chart.

Return Value

Returns the data object that corresponds to the given data point.

Declared In

IGFunnelChartView.h