SChartDataAdapter Protocol Reference

Conforms to NSObject
Declared in SChartDataAdapter.h
Availability
Related samples

Overview

Provides an interface for any object wishing to adapt a series' data points.

Instance Methods

adaptedDataPointsFromDataPoints:

Derives and returns an array of adapted data points from the given dataPoints.

- (NSArray<id<SChartData>> *)adaptedDataPointsFromDataPoints:(NSArray<id<SChartData>> *)dataPoints

Parameters

dataPoints

An array of SChartData objects to be adapted.

Return Value

An array of SChartData objects representing an adapted version of dataPoints.

Discussion

Note that the SChartData objects in dataPoints will have values of the same type as the data originally provided by the chart’s data source. For example if you supply data points that have x values that are NSDate objects, then the SChartData objects contained in dataPoints will have NSDates for their x values.

Declared In

SChartDataAdapter.h