NChartSeriesDataSource Protocol Reference

Conforms to NSObject
Declared in NChartSeries.h

Overview

The NChartSeriesDataSource protocol provides methods to obtain data for the series.

– seriesDataSourcePointsForSeries: required method

Get array of points for the series.

- (NSArray *)seriesDataSourcePointsForSeries:(NChartSeries *)series

Parameters

series
  • series to obtain the points for.

Return Value

an array of NChartPoint instances where the data is stored.

See Also

Declared In

NChartSeries.h

– seriesDataSourceNameForSeries: required method

Get name for the series.

- (NSString *)seriesDataSourceNameForSeries:(NChartSeries *)series

Parameters

series
  • series to obtain the name for.

Return Value

the name for the series.

See Also

Declared In

NChartSeries.h

– seriesDataSourceImageForSeries:

Get image for the series that is displayed in the legend. If nil is returned or method is not implemented, the default image is used.

- (NSImage *)seriesDataSourceImageForSeries:(NChartSeries *)series

Parameters

series
  • series to get image for.

Return Value

the image for the series.

See Also

Declared In

NChartSeries.h

– seriesDataSourceExtraPointsForSeries:

Extend array of points in series.
Use this method to provide additional data for series. This method is called after you call extendData of NChart.

- (NSArray *)seriesDataSourceExtraPointsForSeries:(NChartSeries *)series

Parameters

series
  • series to obtain the extra points for.

Return Value

array of extra points.

Discussion

The points from the array returned are added to the series' array of points, so series will have more data. The maximal length of data array is determined by pointsHistoryLength property of NChart.

See Also

Declared In

NChartSeries.h