IGStackedDateSeriesDataSourceHelper Class Reference

Inherits from IGStackedSeriesDataSourceHelper : NSObject
Declared in IGSeriesDataSourceHelper.h

Overview

This datasource helper creates a datasource for a stacked series that is plotted on a date time axis. 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.

  dates

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

@property (nonatomic, retain, nullable) NSArray<__kindofNSDate*> *dates

Declared In

IGSeriesDataSourceHelper.h

  datePath

Specifies the property name representing the date in the custom object.

@property (nonatomic, copy, nullable) NSString *datePath

Declared In

IGSeriesDataSourceHelper.h

– initWithData:fields:datePath: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.

- (instancetype)initWithData:(NSArray *)data fields:(NSArray<__kindofNSString*> *)fields datePath:(NSString *)datePath labelPath:(NSString *)labelPath

Parameters

data

Array of custom data objects.

fields

Array of string property names for mapping.

datePath

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

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:dates: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.

- (instancetype)initWithData:(NSArray *)data fields:(NSArray<__kindofNSString*> *)fields dates:(NSArray<__kindofNSDate*> *)dates labels:(NSArray<__kindofNSString*> *)labels

Parameters

data

Array of custom data objects.

fields

Array of string property names for mapping.

dates

Array of NSDate objects.

labels

Array containing label strings.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h