Creates a single graph showing several independent GraphLines, and with a horizontal time axis. Because there is a single SimView and DisplayGraph, all the GraphLines are plotted in the same graph coordinates. The horizontal variable can be changed to something other than time. Creates an AutoScale that ensures all of the GraphLines are visible. Creates several controls to modify the graph.

Hierarchy (view full)



  • Parameters

    • varsList: VarsList

      the VarsList to collect data from

    • graphCanvas: LabCanvas

      the LabCanvas where the graph should appear

    • div_controls: HTMLDivElement

      the HTML div where controls should be added

    • div_graph: HTMLDivElement

      the HTML div where the graphCanvas is located

    • simRun: SimRunner

      the SimRunner controlling the overall app

    • Optional color1: string

      color of line 1

    • Optional color2: string

      color of line 2

    • Optional color3: string

      color of line 3

    Returns TimeGraph1


  • Sets whether this Subject will broadcast events, typically used to temporarily disable broadcasting. Intended to be used in situations where a subclass overrides a method that broadcasts an event. This allows the subclass to prevent the superclass broadcasting that event, so that the subclass can broadcast the event when the method is completed.


    • value: boolean

      whether this Subject should broadcast events

    Returns boolean

    the previous value

  • Returns a minimal string representation of this object, usually giving just identity information like the class name and name of the object.

    For an object whose main purpose is to represent another Printable object, it is recommended to include the result of calling toStringShort on that other object. For example, calling toStringShort() on a DisplayShape might return something like this:


    Returns string

    a minimal string representation of this object.

Generated using TypeDoc