IGScatterSeriesDataSourceHelper Class Reference

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.

Other Methods

  xValues

An array of x coordinate values.

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

Declared In

IGSeriesDataSourceHelper.h

  yValues

An array of y coordinate values.

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

Declared In

IGSeriesDataSourceHelper.h

  xPath

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

@property (nonatomic, retain, nullable) NSString *xPath

Declared In

IGSeriesDataSourceHelper.h

  yPath

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

@property (nonatomic, retain, nullable) NSString *yPath

Declared In

IGSeriesDataSourceHelper.h

Initializing DataSource Helper

– initWithXValues:andYValues:

Initializes the data source with arrays of numeric values.

- (instancetype)initWithXValues:(NSArray<__kindofNSNumber*> *)xValues andYValues:(NSArray<__kindofNSNumber*> *)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

– initWithData:xPath:andYPath:

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

- (instancetype)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