SCIDataSeriesObserver Class Reference

#import <SCIDataSeriesObserver.h>

Inheritance diagram for SCIDataSeriesObserver:

Instance Methods

(instancetype _Nonnull) - initWithDataSeriesChangedBlock:
 

Properties

SCIActionBlock onDataSeriesChanged
 Callback is called every time when somthing chages in data series (appending new values, removing, inserting). More...
 

Method Documentation

◆ initWithDataSeriesChangedBlock:()

- (instancetype _Nonnull) initWithDataSeriesChangedBlock: (SCIActionBlock _Nonnull)  block

Property Documentation

◆ onDataSeriesChanged

- (SCIActionBlock) onDataSeriesChanged
readwritenonatomiccopy

Callback is called every time when somthing chages in data series (appending new values, removing, inserting).

let dataSeriesXy = SCIXyDataSeries(xType: .double, yType: .double)
dataSeriesXy?.onDataSeriesChanged = {() -> () in return
print(dataSeriesXy?.count()) // Add some code here which will be run when data series is changed
}
dataSeriesXy?.appendX(SCIGeneric(2.0), y: SCIGeneric(3.0))

The documentation for this class was generated from the following file: