Skip to content

Plotly Express doesn't force category orders on axes #3291

Description

@nicolaskruchten

This causes ordering issues like this:

import plotly.express as px
import pandas as pd

df = pd.DataFrame(dict(
    x=['a','b','c','d'],
    y=[1,2,3,4],
    z=['p','q','p','q']
))

px.bar(df, x="x", y="y", color="z")

newplot (1)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3backlogbugsomething broken

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions