Inherits from IGSeriesDataSourceHelper : NSObject
Declared in IGSeriesDataSourceHelper.h

Overview

This data source helper is used to create a data source usable by category series that uses IGCategoryDateTimeXAxis. The data points of this data source contain a value, a date and a label. This data source is used by charts displaying continuous data, such as IGLineSeries or IGAreaSeries. The data source generates a sequence of IGCategoryDatePoint objects.

Tasks

Other Methods

Initializing DataSource Helper

Properties

datePath

A string name of the property in the data source used for dates.

@property (nonatomic, retain) NSString *datePath

Declared In

IGSeriesDataSourceHelper.h

dates

An array of NSDate objects used to create data points.

@property (nonatomic, retain) NSArray *dates

Declared In

IGSeriesDataSourceHelper.h

valuePath

A string name of the property in the data source used for values.

@property (nonatomic, retain) NSString *valuePath

Declared In

IGSeriesDataSourceHelper.h

values

An array of numeric values used to create data points.

@property (nonatomic, retain) NSArray *values

Declared In

IGSeriesDataSourceHelper.h

Instance Methods

initWithData:valuePath:andDatePath:

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

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

Parameters

data

Array of custom objects.

valuePath

The name of the property containing values.

datePath

The name of the property containing dates.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h

initWithValues:andDates:

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

- (instancetype)initWithValues:(NSArray *)values andDates:(NSArray *)dates

Parameters

values

Array of numeric values.

dates

Array of dates.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h