iOS Charting Documentation - SciChart iOS Charts SDK v3.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 (readwrite, copy, nonatomic, nullable) NSString *seriesName;

    Swift

    var seriesName: String? { get set }
  • Gets whether the DataSeries has values (is not empty).

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL hasValues;

    Swift

    var hasValues: Bool { get }
  • Gets the number of points in this series.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger count;

    Swift

    var count: Int { get }
  • Clears the series, resetting internal lists to zero size.

    Declaration

    Objective-C

    - (void)clear;

    Swift

    func clear()
  • Clears the series, resetting internal lists to zero size.

    Declaration

    Objective-C

    - (void)clearWithRetainCapacity:(BOOL)retainCapacity;

    Swift

    func clear(withRetainCapacity retainCapacity: Bool)

    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;

    Swift

    func addObserver(_ observer: @escaping SCIDataSeriesObserver)

    Parameters

    observer

    The observer to add.

  • Removes SCIDataSeriesObserver from list of change observers for this series.

    Declaration

    Objective-C

    - (void)removeObserver:(nonnull SCIDataSeriesObserver)observer;

    Swift

    func removeObserver(_ observer: @escaping SCIDataSeriesObserver)

    Parameters

    observer

    The observer to remove.