Class: PlotlyPlotModeButton

vef.plot.buttons.PlotlyPlotModeButton(data, overwritePlotModeOnInitopt)

Class representing a plot mode button that switches different plot modes.

Constructor

new PlotlyPlotModeButton(data, overwritePlotModeOnInitopt)

Creates a plot mode button.
Parameters:
Name Type Attributes Default Description
data Array Plotly data configuration.
overwritePlotModeOnInit Boolean <optional>
true Indicates if the plot mode should already be overwritten with the first pre-configured plot mode on class initialization.
Source:

Methods

_switchPlotMode(graphDiv)

Restyle the plot data with respect to the next plot mode.
Parameters:
Name Type Description
graphDiv HTMLElement Plotly graphDiv configuration.
Source: