✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚡️ Concerned about the grid? Kyle Baranko teaches how to predicting peak loads using XGBoost. Register for the August webinar!

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'),

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.