So, I think this is probably more of a python syntax question but, the context of dash so, hopefully someone smarter than me (most people here I’m sure) will have a quick answer.
I have a dropdown component. When the user chooses a value, it will correspond to a a column in my dataframe that I want to show on the X axis of my bar graph.
I’ve tried a few ways to do this but, can’t figure it out. None of these approaches seem to work:
Where ‘value_metric’ is my component id of the dropdown.
dff = df[df.Player_SK == value_player]
fig = px.bar(data_frame=dff, x=‘Game_SK’, y=[{‘value_metric’:‘value’}])
or
fig = px.bar(data_frame=dff, x=‘Game_SK’, y={value_metric:‘value’})
or
a few others…
Thank you in advance and I hope my question was clear.