Black Lives Matter. Please consider donating to Black Girls Code today.
Learn about the upcoming Dash Enterprise 4.0 release in the August 5th webinar with Chris Parmer, the Inventor of Dash.

Updating data in dcc.Graph dash plotly

Hi.

This topic is for sharing with the community a custom dash component to update data from multiple traces in a dcc.Graph. This library is based on the " mydcc.Change_trace" code of https://github.com/jimmybow/mydcc repo and it was modified for multiple traces.

I published a dash example on my GitHub: update-trace-dash-plotly

You can install it with: pip install dash_update_data_components

I don’t know javascript, I just changed a little bit the code of jimmybow to full fit my expectations. I have not tried to change the x,y of a trace, just colour.

I hope this library helps you.

Example:
update-traces

1 Like