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. |
Methods
_switchPlotMode(graphDiv)
Restyle the plot data with respect to the next plot mode.
Parameters:
Name | Type | Description |
---|---|---|
graphDiv |
HTMLElement | Plotly graphDiv configuration. |