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

Label lines overlap when there are lots of small segments clustered at the bottom. #160

Open
mnori opened this issue Aug 6, 2018 · 0 comments

Comments

@mnori
Copy link

mnori commented Aug 6, 2018

d3pie is pretty sweet, but I had some trouble with the label layout. I created a new issue for this, since after doing some tests, it looks like a different bug from #157 (that one affects the top of the pie).

The bug: If you have a pie chart with lots of small segments clustered at the bottom, the layout algorithm becomes confused, causing the label lines to overlap:

borked

I ended up adding a new layout mode called "aside" that renders the labels in a vertical stack, rather than positioned around the circle, this solved my issue:

worky

Demo of bug and my workaround: https://codepen.io/wildtype/pen/ajjrmr

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

1 participant