Black Lives Matter. Please consider donating to Black Girls Code today.
Dash HoloViews is now available! Check out the docs.

Patterns for using uploaded CSVs as new data for updating Graphs

I have an app that loads and is set up with default data. Now I’ve added a file upload component where I want users to be able to upload their own CSVs.

The call back for this component is to an Upload Handler object that performs validation and data cleaning tasks, but the output for this component is just a JSON blob of the final DF to a hidden div.

What I can’t figure out is how to, upon creation of this JSON blob, call all my other Graph creation callback functions with the new data.

Right now every Graph element is generated by a callback from an Input to the dcc.Graph figure output by a call to a class function that returns a figure.

Ideally I would be able to stack all these outputs into one callback function that is called upon file upload that would sequentially handle the upload, then call all of the figure generation functions with the new DF but it doesn’t seem like that is possible


How can I have users upload a CSV and then re-trigger all of my figure-outputting callback functions to execute using the NEW CSV.

If you have any examples of projects w/ source code that handle user uploaded CSVs and update the graphs accordingly I would be very grateful if you could share those.