Specifies drawing style including: whether to draw dots or lines; color; thickness; line dash.

Constructors

  • Parameters

    • drawMode: DrawingMode

      whether to draw dots or lines, a value from DrawingMode

    • color: string

      a CSS color specification

    • lineWidth: number

      thickness to use when drawing the graph line, in screen coordinates, so a unit is a screen pixel.

    • Optional opt_lineDash: number[]

      Line dash array used when drawing the line. Corresponds to lengths of dash and spaces, in screen coordinates. For example, [3, 5] alternates dashes of length 3 with spaces of length 5. Empty array indicates solid line (which is the default).

    Returns DrawingStyle

Properties

color: string

a CSS color specification

drawMode: DrawingMode

Whether to draw dots or lines, a value from DrawingMode.

lineDash: number[]

Line dash array used when drawing the line. Corresponds to lengths of dash and spaces, in screen coordinates. For example, [3, 5] alternates dashes of length 3 with spaces of length 5. Empty array indicates solid line.

lineWidth: number

thickness to use when drawing the line, or size of dots, in screen coordinates, so a unit is a screen pixel.

Methods

  • Returns a DrawingStyle for drawing dots with the given color and dot size.

    Parameters

    • color: string

      a CSS color specification

    • dotSize: number

      size of dots in screen coordinates, so a unit is a screen pixel.

    Returns DrawingStyle

    a DrawingStyle for drawing dots with the given color and dot size

  • Returns a DrawingStyle for drawing a line with the given color, line width and optional line dash.

    Parameters

    • color: string

      a CSS color specification

    • lineWidth: number

      thickness to use when drawing the graph line, in screen coordinates, so a unit is a screen pixel.

    • Optional opt_lineDash: number[]

      Line dash array used when drawing the line. Corresponds to lengths of dash and spaces, in screen coordinates. For example, [3, 5] alternates dashes of length 3 with spaces of length 5. Empty array indicates solid line (which is the default).

    Returns DrawingStyle

    a DrawingStyle for drawing a line with the given color, line width and optional line dash

Generated using TypeDoc