Inherits from IGSeriesDataSourceHelper : NSObject
Declared in IGSeriesDataSourceHelper.h

Overview

This data source helper is used to create a data source usable by category series, or any series that uses single value data points. A typical example of such series is IGColumnSeries or IGLineSeries. This data source accepts an array of values and creates a sequence of IGCategoryPoints for the series.

Tasks

Other Methods

  •   values

    A numeric array of values used to create data points.

    property
  •   valuePath

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

    property

Initializing DataSource Helper

Properties

valuePath

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

@property (nonatomic, retain) NSString *valuePath

Declared In

IGSeriesDataSourceHelper.h

values

A numeric array of values used to create data points.

@property (nonatomic, retain) NSArray *values

Declared In

IGSeriesDataSourceHelper.h

Instance Methods

initWithData:andValuePath:

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

- (id)initWithData:(NSArray *)data andValuePath:(NSString *)valuePath

Parameters

data

Array of custom objects.

valuePath

The name of the property containing values.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h

initWithValues:

Initializes the data source with an array of numeric values.

- (id)initWithValues:(NSArray *)values

Parameters

values

Array of numeric values.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h