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

Selection Data - select all as default interactive dash

I have been following the tutorial on producing interactive dashes (https://dash.plot.ly/interactive-graphing). I have successfully got the dash to display the selected data on a secondary graph, but what I am hoping to do is have this secondary graph display the entire selection of the primary graph as default. Presently the graph remains blank until something is selected. Thanks!

Thanks for writing in, and hope you’re finding the tutorial useful!

I would add an if statement here testing whether the selection is None. If it is, you could set your selection to all, otherwise use the selection provided.

1 Like