Skip to content

Setting category_orders leads to missing data (master branch) #4875

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
LiamConnors opened this issue Nov 13, 2024 · 1 comment · Fixed by #4877
Closed

Setting category_orders leads to missing data (master branch) #4875

LiamConnors opened this issue Nov 13, 2024 · 1 comment · Fixed by #4877
Labels
bug something broken P1 needed for current cycle

Comments

@LiamConnors
Copy link
Member

This example from the docs, shows how to define the category orders:

import plotly.express as px
df = px.data.tips()
fig = px.bar(df, x="day", y="total_bill", color="smoker", barmode="group", facet_col="sex",
             category_orders={"day": ["Thur", "Fri", "Sat", "Sun"],
                              "smoker": ["Yes", "No"],
                              "sex": ["Male", "Female"]})
fig.show()

And renders like this:

Image

The same example run with plotly built from master branch, only shows the bars for Sunday:

Image

@gvwilson gvwilson added bug something broken P1 needed for current cycle labels Nov 13, 2024
@MarcoGorelli
Copy link
Contributor

MarcoGorelli commented Nov 14, 2024

thanks for spotting this, and sorry for having missed it - I think I see the issue, fix incoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken P1 needed for current cycle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants