I am creating a bar graph with something like this:
px.bar(df, x=x, y=y, color=c,
title=params['title'],
hover_data=hover_data)
When c != None
the graph produces either a legend or a colorbar. How can I remove either of them?
This worked for me!
fig.update_traces(showscale=False)
In v5.1.0, this works for me:
fig.update_coloraxes(showscale=False)
Before | After |
---|---|
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With