Default showing graph of dropdown or button

I have a dropdown menu, changing it will display different data (dataframe columns).
Can I set the default graph(default display after to one of the function in the drop down menu instead of showing all the traces?

Hi @Jonathan,

If is a list of at least two traces, set visible=False in the trace definition that you want to hide when plotting fig, before any selection from dropdown menu.

let us say you consists in 3 traces. By default they are set visible. If you want to display only[0], then to hide[1], and[2] do:

for k in [1,2]:
     fig.update_traces(visible=False, selector=k)

Hi @Jonathan, did you find out the solution? I tried @empet 's method, but still gives me all the visualization of all data