dash-bootstrap-components
dash-bootstrap-components copied to clipboard
Graphs in tabs example not rendering
What is happening?
On the documentation site, the "graphs in tabs" example isn't rendering any data.
This is on Google Chrome as well as Safari on iPhone.
What should be happening?
Data should appear on the graphs
Hi Gemma :wave:
This seems to be working as intended. If you click on the Regenerate Graph button it shows the figure.
In the callback it specifies starting with an empty graph.
if not n:
# generate empty graphs when app loads
return {k: go.Figure(data=[]) for k in ["scatter", "hist_1", "hist_2"]}
Yeah, this is as expected, but maybe we could write a clearer explanation somewhere as to what this is demonstrating (i.e. dynamically rendering graphs so they get sized correctly + preserving expensive to compute data across tabs when switching).
Also, we should totally wrap the graphs in a loading spinner rather than have the app just hang for a few seconds.