Class: PlotDataHandler

PlotDataHandler(Object, Object, plotBody)

new PlotDataHandler(Object, Object, plotBody)

Handler for plot data sources and series

Parameters:
Name Type Description
Object Object

of Sources.Options indexed by source names

Object Object

of Sources.Options indexed by series names

plotBody PlotBody

PlotBody instance for this plot

Source:

Methods

_collateData(name, frame)

Stores last frame from each data source, and updates each series.

Parameters:
Name Type Description
name

Data source name

frame

Last frame received from the data source

Source:

getSeries()

Source:
Returns:

Object of series instances indexed by series name

getSources()

Source:
Returns:

Object of Source instances indexed by source name

handleAxesChange(axes)

The PlotDataHandler ensures that all series get updated when axis limits change

Parameters:
Name Type Description
axes Object

An object of {Axis.Options} indexed by axis names

Source:

setSeries(series)

Set the data series by and object of options

Parameters:
Name Type Description
series Object

Object of Series.Options, indexed by series name

Source:

setSources(sources)

Set the data sources by options

Parameters:
Name Type Description
sources Object

Object of WebSocketJson.Options, indexed by source name

Source: