Extend (or append) data instead of update

You could add a State to the callback that captures the figure property:

@app.callback(Output('update-plot', 'figure'), [Input('interval-component', 'n_intervals')], [State('update-plot', 'figure')])

This will give you access to the current value of figure, which you can get the traces data out of.

4 Likes