I have a Plotly stacked barplot with specific categories order. On the plot, the categories stack from bottom to top as wanted : bronze, silver, gold. However, it stacks on the reversed order on the hovermode : gold, silver and bronze (from bottom to top as well) Is there any way to correct the order in the hovermode "x unified" ? import plotly.express as px long_df = px.data.medals_long() category_orders = { "medal": [ "bronze", "silver", "gold", ] } fig = px.bar(long_df, x="nation", y="count", color="medal", category_orders=category_orders) fig.update_layout(hovermode="x unified", legend=dict(orientation="h")) fig.show() Continue reading...