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.
indexnumber sequential index of the trace, indexed from 0.visiblebooleanfalsehides the trace,truedisplays the trace.
enableTraceUpdates()
chart.enableTraceUpdates(index)
Enables update for a specific trace, identified by it's position in the legend.
indexnumber 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.
indexnumber sequential index of the trace, indexed from 0.
duplicateTrace()
chart.duplicateTrace(index, randomizeColor)
Appends a duplicated trace, this trace will not receive updates.
indexnumber sequential index of the trace, indexed from 0.randomizeColorboolean if true the duplicated trace will have a different color. Default:true.
deleteTrace()
chart.deleteTrace(index)
Removes specified trace.
indexnumber sequential index of the trace, indexed from 0.
deleteLastTrace()
chart.deleteLastTrace()
Removes last trace.