Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Display percentage outside for slices that are too small #1

Open
GoogleCodeExporter opened this issue May 7, 2015 · 1 comment
Open

Comments

@GoogleCodeExporter
Copy link

Situation:
A pie chart has slices that are so small that the percentage label is clipped 
inside its slice.

Version information:
pgf-pie 2011/10/02 v0.2

Steps to reproduce:
- Radius 2
- Slice 2% and slice 98%
- Percentage label inside 2% slice is clipped.

Reproducibility:
100%

Expected behaviour:
Precentage is displayed outside of the slice.

Actual behaviour:
Percentage label inside slice is clipped.

Suggested solutions:
Variant a)
If possible automatically detect clipping and ad percentage to the outside 
label instead of inside the slice.
Variant b)
Add user option for minimum slice percentage. All percentages below this 
minimum are displayed outside of the pie chart.

Attachments:
Added a sample where the small slice is black to hide the fact that the 
percentage is clipped and the percentage was added to the label outside the pie.

Original issue reported on code.google.com by [email protected] on 22 Jan 2012 at 10:09

Attachments:

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

No branches or pull requests

1 participant