how can i reproduce the following graph in plotly?
my data looks like:
i have tried the following:
import plotly.express as px fig = px.bar(df, x="year", y=["predicted","actual"], color='risk, barmode='stack', height=400) fig.show()
but i am not getting two separate bar plots for predicted vs actual. how can i do this??