IGAsyncCategoryDataSourceHelper Class Reference

Inherits from IGSeriesDataSourceHelper : NSObject
Declared in IGAsyncCategoryDataSourceHelper.h

Overview

This data source helper is used to create a data source usable by category series. A typical example of such series is IGColumnSeries or IGLineSeries. The helper allows the data to loaded on demand. When the chart zooms or pans new data will be fetched.

Other Methods

  values

A numeric array of values used to create data points.

@property (nonatomic, retain) NSArray<__kindofNSNumber*> *values

Declared In

IGAsyncCategoryDataSourceHelper.h

  valuePath

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

@property (nonatomic, retain) NSString *valuePath

Declared In

IGAsyncCategoryDataSourceHelper.h

  delegate

Sets the IGAsyncCategoryDataSource delegate for this datasource helper.

@property (nonatomic, assign, nullable) id<IGAsyncCategoryDataSource> delegate

Declared In

IGAsyncCategoryDataSourceHelper.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

IGAsyncCategoryDataSourceHelper.h

– initWithValues:andLabels:

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

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

Parameters

values

Array of numeric values.

labels

Array of string labels.

Return Value

Returns an initialized data source.

Declared In

IGAsyncCategoryDataSourceHelper.h

– initWithValuePath:andLabelPath:

Initializes the data source with valuePath and labelPath properties.

- (instancetype)initWithValuePath:(NSString *)valuePath andLabelPath:(NSString *)labelPath

Parameters

valuePath

The name of the property containing values.

labelPath

The name of the property containing labels.

Return Value

Returns an initialized data source.

Declared In

IGAsyncCategoryDataSourceHelper.h