Controller

The global object controller exposed the Zoomdata custom chart API. The controller object contains several properties holding information about the chart. These include, but are not limited to:

  • HTML Element to be used as a chart container (controller.element)
  • Object with properties containing the configuration of each query variable (controller.dataAccessors)
  • Object with the information about the current Zoomdata data source (controller.source)
  • Object with properties to access the value of each constant variable (controller.variables)

Handler functions can override several methods of the controller object to react to chart events like data updates, chart resizing, and query errors. Triggering these events execute the specified handler function.

For more information about the controller properties and methods, visit the individual guides for tips on how to use custom chart API.