Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DataInputXY

Interface for supplying Arrays of 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 XY-compatible points. 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.

Implemented by

Index

Methods

Methods

addArraysXY

  • addArraysXY(arrayX: number[], arrayY: number[]): this
  • Add two individual Arrays, one for X-values, and another for Y-values.

    The length of the Arrays must be equal, otherwise an Error will be thrown.

    For optimal performance, use add() if possible.

    Parameters

    • arrayX: number[]

      Array of X-values.

    • arrayY: number[]

      Array of Y-values.

    Returns this

    Object itself for fluent interface.