Inherits from IGSeriesDataSourceHelper : NSObject
Declared in IGSeriesDataSourceHelper.h

Overview

This data source helper is used to create a data source usable by scatter series. The data points of this data source are numeric value pairs to be used in a cartesian coordinate system. This data source accepts an array of values and creates a sequence of IGScatterPoint objects for the series.

Tasks

Other Methods

  •   xValues

    An array of x coordinate values.

    property
  •   yValues

    An array of y coordinate values.

    property
  •   xPath

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

    property
  •   yPath

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

    property

Initializing DataSource Helper

Properties

xPath

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

@property (nonatomic, retain) NSString *xPath

Declared In

IGSeriesDataSourceHelper.h

xValues

An array of x coordinate values.

@property (nonatomic, retain) NSArray *xValues

Declared In

IGSeriesDataSourceHelper.h

yPath

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

@property (nonatomic, retain) NSString *yPath

Declared In

IGSeriesDataSourceHelper.h

yValues

An array of y coordinate values.

@property (nonatomic, retain) NSArray *yValues

Declared In

IGSeriesDataSourceHelper.h

Instance Methods

initWithData:xPath:andYPath:

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

- (id)initWithData:(NSArray *)data xPath:(NSString *)xPath andYPath:(NSString *)yPath

Parameters

data

Array of custom objects.

xPath

The name of the property containing X values.

yPath

The name of the property containing Y values.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h

initWithXValues:andYValues:

Initializes the data source with arrays of numeric values.

- (id)initWithXValues:(NSArray *)xValues andYValues:(NSArray *)yValues

Parameters

xValues

Array of numeric values used for the X Axis.

yValues

Array of numeric values used for the Y Axis.

Return Value

Returns an initialized data source.

Declared In

IGSeriesDataSourceHelper.h