Interface for supplying single XY data-points to a component.

The primary way of adding points is the add() method. All other methods are 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

  • DataInput

Implemented by

Methods

Methods

  • Append a single XY coordinate or list of coordinates into the series.

     // Example syntax
    LineSeries.add({ x: 0, y: 100 })

    LineSeries.add([
    { x: 0, y: 100 },
    { x: 10, y: 50 },
    { x: 20, y: 75 },
    ])

    Returns

    Object itself for fluent interface.

    Parameters

    • points: Point | Point[]

      Single XY coordinate or list of coordinates.

    Returns DataInput