Skip to content

DataHub API

The API of DataHub

dataHub.chart

A pane that contains the main overlay.

dataHub.offchart

An array of non-main panes.

dataHub.mainOv

The main overlay object.

dataHub.mainPaneId

Id of the main pane.

datHub.panes()

Returns all active panes of the chart.

dataHub.overlay(paneId, ovId)

  • Type: function
  • Arguments
    • paneId: number Pane id
    • ovId: number Overlay id
  • Returns Overlay
  • Related: Overlay Object

Returns an overlay by specific Pane id and Overlay id.

datHub.ovData(paneId, ovId)

  • Type: function
  • Arguments
    • paneId: number Pane id
    • ovId: number Overlay id
  • Returns Array
  • Related: Overlay Object

Return the data of a specific overlay.

datHub.allOverlays()

Return all overlays (from all panes)

Released under the MIT License.