I’m trying to make a simple pie chart and my pie keeps… not being a perfect circle. I convert counts to percentages and then to angles, but the slices don’t land exactly on 100% or 360°. I keep getting totals like 99.9% or 100.3%, and then I sit there nudging numbers like I’m frosting a very picky cake. Am I supposed to “fix” one slice? If yes, which one-largest, smallest, or just the last one I draw?
Here’s a concrete example: 17 apples, 9 bananas, 4 cherries, 1 dragonfruit (total 31). When I turn that into a pie, I end up with a teeny-tiny sliver for dragonfruit that’s basically a paper cut, and also some leftover/extra crumbs because of rounding. Should I round each category first, or keep everything exact and only round the labels? If I round the angles themselves, the tiny slice sometimes vanishes or looks wrong.
Also: is there a rule for where to start the first slice (like 12 o’clock?) and which direction to go? And should I sort the slices biggest-to-smallest, or keep them in the original category order so it matches the legend/list?
What do people do with super small categories-like that 1/31 situation? Do you usually bundle those into an “Other” slice? If so, how small is “too small” to stand alone, and how do you label “Other” in a way that’s not confusing?
For labels, is it better to show raw counts, percentages, degrees, or some combo? If I show percentages to one decimal place, I sometimes end up with totals that don’t add to exactly 100%. Is there a recommended way to distribute the rounding so the labels still add nicely without being misleading?
Mini tangent: at this point should I just use a bar chart and call it a day, or is there a clean, accepted way to make this pie behave like a respectable circle?
Any help appreciated!
















3 Responses
Compute from counts, not from already-rounded numbers. Use exact proportions to place slices, and don’t round individual angles. Accumulate exact fractions around the circle (e.g., start at 12 o’clock, go clockwise), and let the final slice absorb any tiny numerical remainder so the pie always closes at 360°. For labels, round after the fact using a “largest-remainder” rule so they add to exactly 100: compute each percentage to one decimal, temporarily round down, see how many tenths you’re short of 100.0, then give those tenths to the categories with the largest leftover fractional parts. In your example (17, 9, 4, 1 → 31), the exact percentages are 54.84, 29.03, 12.90, 3.23; at one decimal the largest-remainder fix yields 54.9%, 29.0%, 12.9%, 3.2% which sum to 100.0. Same idea works if you must use whole degrees: compute exact degrees, round down, then distribute the leftover degrees by largest fractional remainders; still let the last slice take the final tiny closure to 360°.
For very small categories, set a clarity threshold (commonly 3–5% depending on the medium). Below that, either group into “Other” or keep them but place labels outside with leader lines. If you make “Other,” label it clearly, e.g., “Other 8% (n=5: kiwi 2, pear 2, plum 1)” in a legend or footnote. Ordering: both are acceptable-either sort slices largest-to-smallest (easiest to read) or keep the original category order to match a legend; if you include “Other,” place it last. Starting at 12 o’clock and moving clockwise is conventional and consistent.
Label with counts and/or percentages; degrees add no value to most readers. I’d show counts plus percentages if space allows (e.g., “Apples 17 (54.9%)”). If you have many tiny slices or you want readers to compare magnitudes precisely, a bar chart will be cleaner; if the goal is part-to-whole with a few dominant categories, a pie is fine. What medium are you producing this for (print, slide, dashboard) and how many categories do you usually have? That will set a sensible threshold and rounding precision.
I’d keep totals exact and fix rounding with the largest‑remainder method: compute precise shares, round down to your chosen precision, then add the missing units (0.1% or 1°) to the slices with the biggest fractional parts so labels hit 100%/360°; bundle anything under ~2–3% into “Other” and spell out its members in the legend so the sliver doesn’t vanish. For layout I start at 12 o’clock, go clockwise, sort by size unless original order matters, and-after wrestling with a club snack survey that had a lone 1/31 slice-I found counts plus reconciled percentages read best, but if tiny categories pile up a bar chart is kinder.
When my pie gets crumbly from rounding, I just round each slice to whole degrees and then fix the total by nudging one slice (I usually tweak the biggest or the last one I draw), and I bundle teeny slices (like under ~3–5%) into an “Other” slice so the chart doesn’t look like confetti.
Example: 17, 9, 4, 1 out of 31 → angles ≈ 197.4°, 104.5°, 46.5°, 11.6° → round to 197°, 105°, 47°, 12° (that’s 361°), so shave 1° off apples to get 196°, 105°, 47°, 12°; a quick walkthrough is here: https://www.khanacademy.org/math/statistics-probability/displaying-describing-data/pictorial-displays/v/reading-pie-graphs-circle-graphs.