DXSeriesDataDelegate Protocol

The protocol which a class should adopts to perform actions on data changes.

Declaration

@protocol DXSeriesDataDelegate <NSObject>

Commonly, your classes should not adopt this protocol. Your data classes interacts with this protocol to inform a chart about data changes.

Implements

DXCharts.NSObject

Instance Methods

Constructors

DXSeriesDataDelegate.dataDidReload Instance Method

Declaration

- (void)dataDidReload

DXSeriesDataDelegate.dataItemDidAdd Instance Method

Updates data representation, when data item is added to the end of data point collection.

Declaration

- (void)dataItemDidAdd

DXSeriesDataDelegate.dataItemDidChangeAtIndex: Instance Method

Updates data representation, when data item is changes at the specified index.

Declaration

- (void)dataItemDidChangeAtIndex:(int)index

Parameters

Type Name Description
int index

The index of changed data point.

DXSeriesDataDelegate.dataItemDidInsertAtIndex: Instance Method

Updates data representation, when data item is inserted at the specified index.

Declaration

- (void)dataItemDidInsertAtIndex:(int)index

Parameters

Type Name Description
int index

The index of inserted data point.

DXSeriesDataDelegate.dataItemDidRemoveAtIndex: Instance Method

Updates data representation, when data item is removed at the specified index.

Declaration

- (void)dataItemDidRemoveAtIndex:(int)index

Parameters

Type Name Description
int index

The index of removed data point.

DXSeriesDataDelegate.dataItemsDidAddWithCount: Instance Method

Updates data representation when new points are added to the data source.

Declaration

- (void)dataItemsDidAddWithCount:(int)count

Parameters

Type Name Description
int count

Added points' count.

DXSeriesDataDelegate.dataItemsDidChangeAtIndex:count: Instance Method

Updates data representation when values of data points within the specified range are changed.

Declaration

- (void)dataItemsDidChangeAtIndex:(int)index count:(int)count

Parameters

Type Name Description
int index

The first changed point's index.

int count

The changed points' count.

DXSeriesDataDelegate.dataItemsDidInsertAtIndex:count: Instance Method

Updates data representation when new points are inserted to the data source at the specified range.

Declaration

- (void)dataItemsDidInsertAtIndex:(int)index count:(int)count

Parameters

Type Name Description
int index

The first inserted point's index.

int count

Inserted points' count.

DXSeriesDataDelegate.dataItemsDidRemoveAtIndex:count: Instance Method

Updates data representation when points are removed from the data source at the specified range.

Declaration

- (void)dataItemsDidRemoveAtIndex:(int)index count:(int)count

Parameters

Type Name Description
int index

The first removed point's index.

int count

Removed points' count.