Provide the details for a chart.

Hierarchy

  • Chart

Implements

Constructors

Properties

title?: string

The title of the chart.

Returns

String

EVENT_SERIES_ADDED: string

a new series was added to this chart as part of a multi-series. The series instance is the detail for this event.

Accessors

  • get axes(): Axis[]
  • The axes used in this chart.

    Returns Axis[]

    dh.plot.Axis

  • get chartType(): number
  • The type of this chart, see ChartType enum for more details.

    Returns number

    int

  • get colspan(): number
  • Returns number

  • get column(): number
  • Returns number

  • get is3d(): boolean
  • Returns boolean

  • get legendColor(): string
  • Returns string

  • get legendFont(): string
  • Returns string

  • get row(): number
  • Returns number

  • get rowspan(): number
  • Returns number

  • get showLegend(): boolean
  • Returns boolean

  • get titleColor(): string
  • Returns string

  • get titleFont(): string
  • Returns string

Methods

  • Listen for events on this object.

    Type Parameters

    • T

      the type of the data that the event will provide

    Parameters

    • name: string

      the name of the event to listen for

    • callback: ((e) => void)

      a function to call when the event occurs

        • (e): void
        • Parameters

          Returns void

    Returns (() => void)

    Returns a cleanup function.

      • (): void
      • Returns void

  • Type Parameters

    • T

    Parameters

    • eventName: string
    • Optional timeoutInMillis: number

    Returns Promise<Event<T>>

  • Removes an event listener added to this table.

    Type Parameters

    • T

    Parameters

    • name: string
    • callback: ((e) => void)
        • (e): void
        • Parameters

          Returns void

    Returns boolean