dcc.Graph - extendData, different colour

Hi, I have found extendData property very usefull when updating a plot with new data, but is there a way, I would use different color for a line produced with extendData?

Decoration function looks like this:

@app.callback (Output(component_id='graph',component_property='extendData'),
               [Input('my_interval',component_property='n_intervals')]

I am looking for very simple solution and I am open for any suggestions. I am pretty new to Dash, so any help would be more than welcomed. Thank you.

I don’t believe there is a way to change color (or styling, in general) for parts of a trace. If you are only using a single trace at the moment (no legend), one approach to “hack” the effect could be to add new traces with different styling.

1 Like

Thank you @brad . Great knowledge you have.