Plotly chart
clear()
chart.clear()
Removes all traces from the chart, until the next update.
setTraceVisibility()
chart.setTraceVisibility(index, visible)
Shows or hides a trace in the chart. Trace continues to be updated.
index
number sequential index of the trace, indexed from 0.visible
booleanfalse
hides the trace,true
displays the trace.
enableTraceUpdates()
chart.enableTraceUpdates(index)
Enables update for a specific trace, identified by it's position in the legend.
index
number sequential index of the trace, indexed from 0.
disableTraceUpdates()
chart.disableTraceUpdates(index)
Disables update for a specific trace, identified by it's position in the legend.
index
number sequential index of the trace, indexed from 0.
duplicateTrace()
chart.duplicateTrace(index, randomizeColor)
Appends a duplicated trace, this trace will not receive updates.
index
number sequential index of the trace, indexed from 0.randomizeColor
boolean if true the duplicated trace will have a different color. Default:true
.
deleteTrace()
chart.deleteTrace(index)
Removes specified trace.
index
number sequential index of the trace, indexed from 0.
deleteLastTrace()
chart.deleteLastTrace()
Removes last trace.