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

Piechart slice order #1012

Closed
markov00 opened this issue Feb 3, 2021 · 0 comments · Fixed by #1112
Closed

Piechart slice order #1012

markov00 opened this issue Feb 3, 2021 · 0 comments · Fixed by #1112
Assignees
Labels
enhancement New feature or request :partition Partition/PieChart/Donut/Sunburst/Treemap chart related

Comments

@markov00
Copy link
Member

markov00 commented Feb 3, 2021

Provide a way to specify an index for sorting slices in a pie or sunburst chart.

This should be useful in the following use cases:

  • we want to treat one particular slice differently from the other ones, like the Other slice that we'd like to render as the last slice, even if its value is larger than some of the category-assigned slices
  • during animation (eg. time playthrough, or paging back/forth among category filters) for visual stability between data updates, avoiding slices rotating over one another
  • to use in particular cases where the order is implied by the semantics of the categories, such as data that is ordinal in its meaning (e.g. perfect, good, ok, bad)

image

@markov00 markov00 added :partition Partition/PieChart/Donut/Sunburst/Treemap chart related enhancement New feature or request labels Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request :partition Partition/PieChart/Donut/Sunburst/Treemap chart related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants