Choropleth map using plotly express

I am trying to make choropleth map using plotly express , i want static label of states in my chart but i am not sure how to do that.

Below is the sample data.

here is my code

Import plotly.express as px

fig=px.choropleth(choropleth,locations=“USA-states”,scope=“usa”,animation_frame=“Year-month”,animation_group=“State”,color=“Bucket”
fig.show()

right now my map is like


i want to have it in this form

I see another topic about that, you can refer it here:

1 Like