Type or paste labels and values and the percentages are worked out for you, in the legend and on the slices. Pie or donut, SVG or PNG, with no account.
How to make a pie chart
- List the parts in the first column and their amounts in the second.
- Paste the two columns in the Data panel, or type them in the table.
- The shares are calculated from the amounts and shown in the legend next to each value.
- Choose pie or donut, sort the slices if their order is not meaningful, and download.
What a pie chart can and cannot show
A pie shows how one total divides into parts. It works when there are few parts, when they add up to something meaningful, and when the message is roughly “this part is about half” or “these two together are most of it”. People judge those simple fractions well.
It works badly for comparing parts of similar size, because angles are harder to compare than lengths, and it cannot show change over time. Two pies side by side are harder still. For those cases use a sorted bar chart or stacked bars.
Making the slices readable
- Start at the top and go clockwise. The first slice begins at 12 o’clock, the position readers expect.
- Sort by size unless the parts have a natural order, such as age groups or “agree, neutral, disagree”.
- Keep it to six slices or fewer. Merge the small ones into “Other” in your table.
- Put the numbers in the legend. Each legend row shows the value and the share, so nobody has to estimate an angle. Percentages are also written on slices of 5% and more.
Colour for slices
Every slice needs its own colour, and neighbours must be easy to tell apart, including for the roughly one in twelve men with a red-green colour-vision deficiency. The default palette was designed for that. The figure shows its colours as they appear with normal vision and with the two red-green deficiencies; the simulation runs in this page’s code.
Donut
The donut option removes the centre and writes the total there. It is the same chart with one more number, useful when the total is part of the message: a budget, a headcount, a number of answers.