Skip to content
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

Pie Chart ignores categories prop #2921

Closed
carbonrobot opened this issue Oct 16, 2024 · 0 comments · Fixed by #2934
Closed

Pie Chart ignores categories prop #2921

carbonrobot opened this issue Oct 16, 2024 · 0 comments · Fixed by #2934
Assignees
Labels
Issue: Accepted The submitted issue has been confirmed by the Victory core team Type: Bug 🐛 Oh no! A bug or unintentional behavior

Comments

@carbonrobot
Copy link
Contributor

carbonrobot commented Oct 16, 2024

Pie chart does not correctly order based on the standard categories property.

<VictoryPie
  innerRadius={50}
  padAngle={5}
  data={[
    { x: "Cats", y: 30 },
    { x: "Dogs", y: 35 },
    { x: "Birds", y: 25 },
    { x: "Rabbits", y: 10 },
  ]}
  categories={{ x: ["Cats", "Birds", "Dogs", "Rabbits"] }}
  theme={VictoryTheme.clean}
/>

image

@carbonrobot carbonrobot added Type: Bug 🐛 Oh no! A bug or unintentional behavior Issue: Accepted The submitted issue has been confirmed by the Victory core team labels Oct 16, 2024
@nstolpe nstolpe self-assigned this Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Accepted The submitted issue has been confirmed by the Victory core team Type: Bug 🐛 Oh no! A bug or unintentional behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants