IGFunnelChartViewDataSourceHelper Class Reference

Inherits from NSObject
Conforms to IGFunnelChartViewDataSource
Declared in IGFunnelChartView.h

Overview

This data source helper is used to create a data source for the funnel chart. The data source helper provides a simplified way of supplying data for the funnel chart. The resulting data structure contains multiple IGCategoryPoint instances.

Other Methods

  data

An array of custom data objects. The fields in the data object are accessed via memberPath properties.

@property (nonatomic, retain) NSArray *data

Declared In

IGFunnelChartView.h

  innerLabels

An array of string labels used to create inner labels for data points.

@property (nonatomic, retain) NSArray *innerLabels

Declared In

IGFunnelChartView.h

  innerLabelPath

Name of the property containing inner abels.

@property (nonatomic, retain) NSString *innerLabelPath

Declared In

IGFunnelChartView.h

  outerLabels

An array of string labels used to create outer labels for data points.

@property (nonatomic, retain) NSArray *outerLabels

Declared In

IGFunnelChartView.h

  outerLabelPath

Name of the property containing outer labels.

@property (nonatomic, retain) NSString *outerLabelPath

Declared In

IGFunnelChartView.h

  values

A numeric array of values used to create data points.

@property (nonatomic, retain) NSArray *values

Declared In

IGFunnelChartView.h

  valuePath

A string value path that specifies the property in the data source used for values.

@property (nonatomic, retain) NSString *valuePath

Declared In

IGFunnelChartView.h

Initializing DataSource Helper

– initWithValues:

Initializes the data source with an array of numeric values.

- (instancetype)initWithValues:(NSArray<__kindofNSNumber*> *)values

Parameters

values

Array of numeric values.

Return Value

Returns an initialized data source.

Declared In

IGFunnelChartView.h

– initWithValues:innerLabels:outerLabels:

Initializes the data source with an array of numeric values and string labels.

- (instancetype)initWithValues:(NSArray<__kindofNSNumber*> *)values innerLabels:(NSArray<__kindofNSString*> *)innerLabels outerLabels:(NSArray<__kindofNSString*> *)outerLabels

Parameters

values

Array of numeric values.

innerLabels

Array of inner string labels.

outerLabels

Array of outer string labels.

Return Value

Returns an initialized data source.

Declared In

IGFunnelChartView.h

– initWithData:valuePath:

Initializes the data source with an array of custom data objects.

- (instancetype)initWithData:(NSArray *)data valuePath:(NSString *)valuePath

Parameters

data

Array of custom objects.

valuePath

The name of the property containing values.

Return Value

Returns an initialized data source.

Declared In

IGFunnelChartView.h

– initWithData:valuePath:innerLabelPath:outerLabelPath:

Initializes the data source with an array of custom data objects.

- (instancetype)initWithData:(NSArray *)data valuePath:(NSString *)valuePath innerLabelPath:(NSString *)innerLabelPath outerLabelPath:(NSString *)outerLabelPath

Parameters

data

Array of custom objects.

valuePath

The name of the property containing values.

innerLabelPath

The name of the property containing inner labels.

outerLabelPath

The name of the property containing outer labels.

Return Value

Returns an initialized data source.

Declared In

IGFunnelChartView.h