Reputation: 889
I have this code:
df = pd.DataFrame(np.random.rand(5, 6))
fig = px.bar(df)
fig.show()
I would like the starting output unmark all the variables (or to add a button that unmark them), so this will be the starting output:
Upvotes: 0
Views: 31
Reputation: 31146
Straight forward use of update_traces()
df = pd.DataFrame(np.random.rand(5, 6))
fig = px.bar(df).update_traces(visible="legendonly")
fig.show()
Upvotes: 1