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

Ability to position the Pie sectors #2090

Closed
Gunner17 opened this issue Apr 8, 2020 · 2 comments
Closed

Ability to position the Pie sectors #2090

Gunner17 opened this issue Apr 8, 2020 · 2 comments

Comments

@Gunner17
Copy link

Gunner17 commented Apr 8, 2020

When I render my pie chart, the biggest slice/sector gets positioned randomly. Example: Please see the 16.9% (in blue) sector in the screenshot below.

Default rendering

Instead, can I start this sector from the midpoint of the Pie, like the following screenshot? Is there a way to achieve this through the current API?

Screen Shot 2020-04-07 at 9 26 01 PM

@mariopeixoto
Copy link

Sort the data by value descending, and use startAngle={180} endAngle={-180}

@Gunner17
Copy link
Author

Solved! Thanks @mariopeixoto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants