Inherits from NSObject
Conforms to IGStackedSeriesDataSource
Declared in IGSeriesDataSourceHelper.h

Overview

This datasource helper creates a datasource that can be used for a stacked series. The data for this helper should be an array of custom objects, where each object has numeric properties. Each object will represent a single stack and each numeric property across all objects will represent a stacked fragment series. This helper will generate the fragments and add them to the stacked series.

Tasks

Other Methods

  •   data

    This structure is the array of custom objects, from which the fragments will be extracted.

    property
  •   labelPath

    Determines the property name of the items in the data array to be used for labels.

    property
  •   labels

    Specifies an array of labels to use in the stacked series.

    property

Initializing DataSource Helper

  • – initWithData:fields:

    Initializes the data source with an array of custom data objects and an array of binding fields. This method is used to initialize the stacked series data source. It supplies the array of objects through the data parameter. The fields array should contain string property names that map to properties in the data array.

  • – initWithData:fields:labelPath:

    Initializes the data source with an array of custom data objects, an array of binding fields and labels. This method is used to initialize the stacked series data source. It supplies the array of objects through the data parameter. The fields array should contain string property names that map to properties in the data array. LabelPath should be the name of the property in the data array that contains string labels.

  • – initWithData:fields:labels:

    Initializes the data source with an array of custom data objects, an array of binding fields and labels. This method is used to initialize the stacked series data source. It supplies the array of objects through the data parameter. The fields array should contain string property names that map to properties in the data array. Labels is an array that contains string labels.

Properties

data

This structure is the array of custom objects, from which the fragments will be extracted.

@property (nonatomic, readonly) NSArray *data

Declared In

IGSeriesDataSourceHelper.h

labelPath

Determines the property name of the items in the data array to be used for labels.

@property (nonatomic, retain) NSString *labelPath

Declared In

IGSeriesDataSourceHelper.h

labels

Specifies an array of labels to use in the stacked series.

@property (nonatomic, retain) NSArray *labels

Declared In

IGSeriesDataSourceHelper.h

Instance Methods

initWithData:fields:

Initializes the data source with an array of custom data objects and an array of binding fields. This method is used to initialize the stacked series data source. It supplies the array of objects through the data parameter. The fields array should contain string property names that map to properties in the data array.

- (id)initWithData:(NSArray *)data fields:(NSArray *)fields

Parameters

data

Array of custom data objects.

fields

Array of string property names for mapping.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h

initWithData:fields:labelPath:

Initializes the data source with an array of custom data objects, an array of binding fields and labels. This method is used to initialize the stacked series data source. It supplies the array of objects through the data parameter. The fields array should contain string property names that map to properties in the data array. LabelPath should be the name of the property in the data array that contains string labels.

- (id)initWithData:(NSArray *)data fields:(NSArray *)fields labelPath:(NSString *)labelPath

Parameters

data

Array of custom data objects.

fields

Array of string property names for mapping.

labelPath

A string that maps to a property containing labels in the data array.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h

initWithData:fields:labels:

Initializes the data source with an array of custom data objects, an array of binding fields and labels. This method is used to initialize the stacked series data source. It supplies the array of objects through the data parameter. The fields array should contain string property names that map to properties in the data array. Labels is an array that contains string labels.

- (id)initWithData:(NSArray *)data fields:(NSArray *)fields labels:(NSArray *)labels

Parameters

data

Array of custom data objects.

fields

Array of string property names for mapping.

labels

Array containing label strings.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h