You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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:
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:
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:
Demo of bug and my workaround: https://codepen.io/wildtype/pen/ajjrmr
The text was updated successfully, but these errors were encountered: