ProtoTwin API
    Preparing search index...

    Class NumericSeriesAbstract

    Numeric Series. Base type for line and scatter series.

    Hierarchy (View Summary)

    Index

    Properties

    Accessors

    Methods

    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

    • Clears the series.

      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.