IGHighLowDateSeriesDataSourceHelper Class Reference

Inherits from IGHighLowSeriesDataSourceHelper : IGSeriesDataSourceHelper : NSObject
Declared in IGSeriesDataSourceHelper.h

Overview

This data source helper is used to create a data source usable by range series plotted on a date time axis. This helper is useful when plotting an IGRangeAreaSeries on an IGCategoryDateTimeXAxis. The helper creates a sequence of IGHighLowDatePoint objects for the series.

Other Methods

  dates

Secifies an array of dates to use with the range series.

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

Declared In

IGSeriesDataSourceHelper.h

  datePath

Specifies the name of the property representing dates in the custom object.

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

Declared In

IGSeriesDataSourceHelper.h

Initializing DataSource Helper

– initWithHighValues:lowValues:andDates:

Initializes the data source with arrays of numeric and date values.

- (instancetype)initWithHighValues:(NSArray<__kindofNSNumber*> *)highValues lowValues:(NSArray<__kindofNSNumber*> *)lowValues andDates:(NSArray<__kindofNSDate*> *)dates

Parameters

highValues

Array of numeric values used for the high values.

lowValues

Array of numeric values used for the low values.

dates

Array of dates used for the data points.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h

– initWithData:highPath:lowPath:andDatePath:

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

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

Parameters

data

An array of custom objects.

highPath

The name of the property containing high values.

lowPath

The name of the property containing low values.

datePath

The name of the property containing dates.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h