Conforms to NSObject
Declared in TKChart.h

Overview

The TKChartDataSource protocol is adopted by an object that mediates the application’s data model for a TKChart object. The data source provides the chart-view object with the information it needs to construct and modify a chart view.

Instance Methods

chart:dataPointAtIndex:forSeriesAtIndex:

Asks the data-source to return a data point from a specified series.

- (id<TKChartData> __nonnull)chart:(TKChart *__nonnull)chart dataPointAtIndex:(NSUInteger)dataIndex forSeriesAtIndex:(NSUInteger)seriesIndex

Parameters

chart

The TKChart instance requesting this information.

dataIndex

The index of data point.

seriesIndex

The index of the series.

Declared In

TKChart.h

chart:dataPointsForSeriesAtIndex:

Asks the data-source to return an array of data points from a specified series.

- (NSArray *__nullable)chart:(TKChart *__nonnull)chart dataPointsForSeriesAtIndex:(NSUInteger)seriesIndex

Parameters

chart

The TKChart instance requesting this information.

seriesIndex

The series index.

Declared In

TKChart.h

chart:numberOfDataPointsForSeriesAtIndex:

Asks the data-source to return the number of data point in series for the chart.

- (NSUInteger)chart:(TKChart *__nonnull)chart numberOfDataPointsForSeriesAtIndex:(NSUInteger)seriesIndex

Parameters

chart

The object representing the chart requesting this information.

seriesIndex

The index of series.

Declared In

TKChart.h

numberOfSeriesForChart:

Asks the data-source to return the number of series in the chart.

- (NSUInteger)numberOfSeriesForChart:(TKChart *__nonnull)chart

Parameters

chart

An object representing the chart requesting this information.

Declared In

TKChart.h

seriesForChart:atIndex:

Asks the data-source to return a series for the chart at a particular index.

- (TKChartSeries *__nonnull)seriesForChart:(TKChart *__nonnull)chart atIndex:(NSUInteger)index

Parameters

chart

The TKChart instance requesting this information.

index

The index of the series.

Declared In

TKChart.h