Interface for supplying an Array of High Low data to a component.

Given data is expected to be two number Arrays of equal length, which will be transformed into a single array of AreaPoints. This method is for end user utility, and simply transform given data to the format of add(). As such, they cause additional performance overhead, so use add() whenever possible.

Hierarchy

  • DataInputHighLow

Implemented by

Methods

  • Add an Array of High Low values. Each HighLow value will be paired with an automatically generated HighLow value, based on step-argument. For optimal performance, use add() if possible.

    Returns

    Object itself for fluent interface.

    Parameters

    • arrayHigh: number[] | TypedArray

      Array of first High values.

    • arrayLow: number[] | TypedArray

      Array of Second Low values

    • Optional step: number

      Optional step between each HighLow coordinate. Defaults to 1.

    • Optional start: number

      Optional value for first generated HighLow value. Defaults to 0.

    Returns DataInputHighLow