
iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIDataSeriesCore
@protocol ISCIDataSeriesCore <NSObject>
Defines base methods for all DataSeries throughout the SciChart SDK.
-
Defines the name of this series.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *seriesName;
-
Gets whether the DataSeries has values (is not empty).
Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasValues;
-
Gets the number of points in this series.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger count;
-
Clears the series, resetting internal lists to zero size.
Declaration
Objective-C
- (void)clear;
-
Clears the series, resetting internal lists to zero size.
Declaration
Objective-C
- (void)clearWithRetainCapacity:(BOOL)retainCapacity;
Parameters
retainCapacity
If YES - series resets internal lists to zero size, otherwise - internal list are recreated.
-
Adds
SCIDataSeriesObserver
which observes changes in this series.Declaration
Objective-C
- (void)addObserver:(nonnull SCIDataSeriesObserver)observer;
Parameters
observer
The observer to add.
-
Removes
SCIDataSeriesObserver
from list of change observers for this series.Declaration
Objective-C
- (void)removeObserver:(nonnull SCIDataSeriesObserver)observer;
Parameters
observer
The observer to remove.