Hey
I have a table with multiple columns as metadata (categorical) and one column for a value
lets say the columns look something like this:
ID, value, meta1,meta2,meta3
I have a box plot
fig = px.box(df, x='ID', y='value', color='meta1', template="plotly_white")
I would like to add a dropdown to dynamically change the meta1 column i set for the color attribute
is it possible?
I have tried:
fig.update_layout(updatemenus=[
dict(
buttons=list([
dict(
args=["color", "meta1"],
label="meta1",
method="restyle"
),
dict(
args=["color", "meta2"],
label="meta2",
method="restyle"
)
but no luckโฆ
any suggestion how can i do this?