I recently started using dash.
One of the things I found that callbacks can send multiple outputs but dash doesn’t recommend it.
I have a dash board that has multiple graphs.
I tried two options:
Option 1: Used a single callback to process data for graphs, create the graphs and render the page. This works fine, all graphs render at the same time, actually page loads quite fast.
Option 2: Did aggregation in a callback and passed this data to individual callbacks for each figure. This also works. However, individual graphs render one after another and it seems full dashboard gets displayed in bit more time than in the option 1. Page rendering also looks clumsy compared to option 1.
My question is what is a best approach for callbacks that display multiple graphs and why is not having multiple callback outs not a recommended approach. Right now I am leaning towards option 1 even though it makes call back function but hard to manage.
Any response is appreciated.
4 posts - 2 participants