ProtoTwin API
    Preparing search index...

    Class LineSeries

    Line Series.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    • Constructor.

      Parameters

      • Optionalname: string

        The label for the series.

      • Optionalx: readonly number[]

        The (optional) x-axis coodinate values.

      • Optionaly: readonly number[]

        The (optional) y-axis coodinate values.

      Returns LineSeries

    Properties

    name: string

    The series name/label.

    x: number[]

    The x-axis coordinates.

    y: number[]

    The y-axis coordinates.

    Accessors

    • get count(): number

      The number of data points.

      Returns number

    Methods

    • Adds a data point.

      Parameters

      • x: number

        The x-axis coordinate.

      • y: number

        The y-axis coordinate.

      Returns void

    • Forces a redraw of the series at the next update.

      Returns void

      This function should be called after manually adding/changing the data arrays for the series.