What the chart shows
A pie chart divides a circle into slices, one for each category. A slice’s share of the circle is the category’s share of the whole, and since a full turn is 360°, the slice’s angle is the share times 360°. UNECE’s guide to presenting statistics describes the pie chart as a way to show the percentage distribution of one variable.
The data behind the figure
| Category | Count | Share (%) | Angle (°) |
|---|---|---|---|
| Apples | 8 | 40% | 144° |
| Bananas | 5 | 25% | 90° |
| Pears | 4 | 20% | 72° |
| Oranges | 3 | 15% | 54° |
Two conditions follow. Each unit is counted in exactly one slice, and the slices together are the whole group. In the chart above each of the 20 pupils gave one answer, so the shares 40%, 25%, 20% and 15% add up to 100%.
How to read and calculate
- The share. The count divided by the whole: apple 8 out of 20, so 40%.
- The angle. The share times 360°: 40% of 360° is 144°. Banana, 25%, gets 90°, a right angle, and the four angles 144°, 90°, 72° and 54° add up to 360°.
- The count from the share. If only the shares are on the chart and the whole is given beneath it, the count is the share times the whole: 25% of 20 is 5.
- The share from the angle. The angle divided by 360°: 72° is 72/360 = 20%.
Without numbers on the chart, half a circle and a quarter of a circle can be seen, but hardly the difference between 20% and 25%. UNECE therefore advises labelling the slices with their values and writing the category names on the chart itself, so that no legend is needed.
When it fits and when it does not
A pie chart fits when the parts of one whole are shown, when each unit belongs to one category, and when the categories are few: UNECE says that usually no more than six can be shown. The guide notes that many statisticians advise against pie charts and that a bar chart is more appropriate in most cases, but also that the pie chart should not be ruled out completely, because it shows well how large one category is relative to the whole.
It does not fit when:
- Each person could give several answers. Then there is no one whole to divide (next section).
- The parts do not form a whole. The average temperatures of five cities, or the heights of five pupils, can be added to a sum that means nothing. A slice for each city is a share of nothing.
- Two groups are compared. UNECE points out that comparing slices across two pie charts is harder still than within one. Two bars per category show the same thing more clearly.
- A development over time is shown. One circle per year makes the comparison hard; a line graph shows it directly.
When each person can give several answers
Forty pupils were asked Which pets do you have at home? and could tick every answer that applied: dog 14, cat 12, rabbit 6, fish 4 and no pet 10. That is 46 ticks from 40 pupils. As shares of the pupils they are 35%, 30%, 15%, 10% and 25%, which add up to 115%.
A circle holds 100%. There are two ways of forcing the survey into a pie chart anyway, and both give the wrong picture:
- Drawing the slices by the share of pupils. They add up to 115% and do not fit in a circle.
- Taking shares of the ticks instead of the pupils. Dog becomes 14 out of 46, about 30%, and the circle adds up. But the chart now shows shares of ticks, and the reader reads them as shares of pupils: that 30% have a dog, when the share is 35%. A pupil with both a dog and a cat also appears as two parts of the whole.
A bar graph shows the survey correctly: one bar per answer, and a line under the chart saying that more than one answer was allowed and that the shares of the 40 pupils therefore add up to more than 100%.
The data behind the figure
| Category | Count |
|---|---|
| Dog | 14 |
| Cat | 12 |
| Rabbit | 6 |
| Fish | 4 |
| No pet | 10 |
Common mistakes
- A pie chart of a question with several answers, as above.
- A three-dimensional or tilted pie chart. The perspective makes the slices nearest the reader look larger than they are. UNECE finds that three-dimensional charts rarely add value and often distort the data.
- Too many slices. Small slices cannot be read or labelled. Merge the smallest into one slice, Other, and say what it contains, or use bars.
- Two circles with different wholes. A slice of 25% is 5 pupils in a class of 20 and 10 pupils in a group of 40. Slices of equal size mean equal shares, not equal numbers.
- Shares that do not add up to 100%. Rounded shares can add up to 99% or 101%, and that is not an error: three equal parts are 33% each. If the shares add up to far more than 100%, some units have been counted more than once.
Going deeper: drawing a pie chart by hand
The angles come from the counts: the count divided by the whole, times 360°. With 20 pupils each pupil is 18°, and the angles are whole degrees. With other wholes they are not always. If each angle is rounded on its own, the sum can come to 359° or 361°; then the largest slice is adjusted, where one degree shows least.
UNECE advises ordering the slices by size rather than mixing large and small ones. The chart above starts at twelve o’clock and runs clockwise from the largest slice to the smallest.
The pie chart is more than two hundred years old. According to Ian Spence, who has written on its origins, it first appears in William Playfair’s The Statistical Breviary of 1801. Playfair had already devised the bar chart in 1786 and was the first to advocate the line graph for time series.