iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

SCIPoint2DSeries

@interface SCIPoint2DSeries : NSObject <ISCICleanable>

Defines a strongly typed PointSeries of Point2D items, a subset of X, Y data used to resample points.

  • Gets the collection of X-Values.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SCIDoubleValues *_Nonnull xValues;

    Swift

    var xValues: SCIDoubleValues { get }
  • Gets the collection of Y-Values.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SCIDoubleValues *_Nonnull yValues;

    Swift

    var yValues: SCIDoubleValues { get }
  • Defines the collection of indices.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) SCIIntegerValues *_Nonnull indices;

    Swift

    var indices: SCIIntegerValues { get }
  • Gets or sets the current count of this point series instance.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger count;

    Swift

    var count: Int { get set }
  • Creates a new instance of SCIPoint2DSeries.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSize:(NSInteger)size;

    Swift

    init(size: Int)

    Parameters

    size

    The initial capacity of this SCIPoint2DSeries instance.

  • Creates a new instance of SCIPoint2DSeries.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithXValues:(nonnull SCIDoubleValues *)xValues
                                    yValues:(nonnull SCIDoubleValues *)yValues
                                    indices:(nonnull SCIIntegerValues *)indices;

    Swift

    init(xValues: SCIDoubleValues, yValues: SCIDoubleValues, indices: SCIIntegerValues)

    Parameters

    xValues

    The collection of x-values.

    yValues

    The collection of y-values.

    indices

    The collection of indices.

  • Clears and disposes allocated memory

    Declaration

    Objective-C

    - (void)disposeItems;

    Swift

    func disposeItems()