SChartDataPoint Class Reference

Inherits from NSObject
Conforms to SChartData
Declared in SChartDataPoint.h
Availability Standard
Premium
Related samples

Overview

This class represents the data items contained within an SChartSeries.

Each SChartDataPoint represents a simple data point in a SChartDataSeries. The simple data point is made up of an x and a y object (not multiple x or y objects). It doesn’t need to know what these objects are, it merely looks after them. Knowing how to interpet and translate these objects onto a chart is the job of the axis on the chart, which is an instance of SChartAxis.

When creating a Radar or Polar chart using a SChartRadialLineSeries, use the xValue and yValue properties to plot your data. The xValue property stores data corresponding to the circular (radial) axis that renders clockwise around the chart. The yValue property stores data corresponding to the horizontal (polar) axis which renders from the center to the outer edge of the chart.

More information about using SChartDataPoint can be found in the user guide.

Tasks

Other Methods

Data

Properties

index

Returns the index of this data point in its series.

@property (nonatomic, assign, readonly) NSInteger index

Declared In

SChartDataPoint.h

xValue

The x value for this data point.

@property (nullable, nonatomic, retain) id xValue

Declared In

SChartDataPoint.h

yValue

The y value for this data point.

@property (nullable, nonatomic, retain) id yValue

Declared In

SChartDataPoint.h

Instance Methods

initWithXValue:yValue:

Returns a data point with the specified x and y values.

- (instancetype)initWithXValue:(nullable id)xValue yValue:(nullable id)yValue

Parameters

xValue

The x value that this data point should have.

yValue

The y value that this data point should have.

Return Value

A data point with the specified x and y values.

Declared In

SChartDataPoint.h