PlotlyExtendTraces
PlotlyExtendTraces[p_PlotlyInstance, data_Association, {target_Integer}]
appends new points data
to a given trace indexed by trace
number (starting from 0)
tip
See the official reference
Example
Create a dummy plot
p = Plotly[<|
"y" -> Table[Sin[2Pi x / 100.0], {x,100}],
"mode" -> "line"
|>]
now lets add data dynamically
task = SetInterval[
PlotlyExtendTraces[p, <|
"y" -> {{RandomReal[]}}
|>, {0}]
, 100];
SetTimeout[TaskRemove[task], 2000];