ChartObserver

class ChartObserver

An abstract class for objects that “observe” Charts.

Constructors

(): ChartObserver

Properties

charts

charts: Chart <any> []

A list of Charts that the Plugin will pay attention to.

Methods

add

add(chart: Chart | Chart <any> []): void

This method registers a Chart or list of Charts with the Plugin.

Parameters

  • chart: Chart | Chart <any> []

Returns: void

addChart

addChart(chart: Chart <any>): void

Add a Chart to the observer.

Parameters

  • chart: Chart <any>

Returns: void

alert

alert(chart: Chart <any>): void

The method that will be called when the observer is alerted by a Chart.

Parameters

  • chart: Chart <any>

Returns: void