iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCIDoubleValuesProvider

@protocol ISCIDoubleValuesProvider <NSObject>

Defines a collection which can represented as sequence of double values.

  • Returns the number of elements in this provider.

    Declaration

    Objective-C

    @property (readonly, nonatomic) NSInteger count;

    Swift

    var count: Int { get }
  • Gets the items of list at specified indices and sets them as double values.

    Declaration

    Objective-C

    - (void)getDoubleValues:(nonnull SCIDoubleValues *)doubleValues
                    indices:(nonnull SCIIntegerValues *)indices;

    Swift

    func getDoubleValues(_ doubleValues: SCIDoubleValues, indices: SCIIntegerValues)

    Parameters

    doubleValues

    The target collection to add item to.

    indices

    The collection of indices to get items at.

  • Gets the items of list at specified start index and sets them as double values.

    Declaration

    Objective-C

    - (void)getDoubleValues:(nonnull SCIDoubleValues *)doubleValues
                 startIndex:(NSInteger)startIndex
                      count:(NSInteger)count;

    Swift

    func getDoubleValues(_ doubleValues: SCIDoubleValues, start startIndex: Int, count: Int)

    Parameters

    doubleValues

    The target collection to add item to.

    startIndex

    The index to start at.

    count

    The amount of items to be retrieved.