When to use a bar graph vs a pie chart
Use a pie chart when a few parts, four or so, add up to one whole and the point is how big one share is. Use a bar graph for everything else, especially when readers must compare close values or rank categories.
Updated · 5 min read
Why bars usually win
Bars are the safe default because of how people read charts. In a 1984 paper in the Journal of the American Statistical Association, William Cleveland and Robert McGill ranked the visual tasks people use to read graphs by how accurately they perform them. Judging position along a common scale came top. Judging angle came lower. When they tested pie charts against bar charts showing the same values, the pie was more accurate on average in only 3 of 40 cases, and the average error on angle judgements was about twice that on position judgements.
A bar puts every value against the same baseline, so the eye compares lengths. A pie makes the eye compare wedges. The pie still has a job. The job is just narrow.
Use a pie chart when
All three of these hold:
- The parts add up to one whole. Every slice is a share of the same total, and the slices sum to 100%. If the numbers do not add up to something meaningful, a pie is the wrong chart.
- There are only a few parts. Datawrapper Academy says pie charts work best with four values at most, and suggests a stacked bar or column chart beyond that.
- The point is the size of one share against the whole. The reader should get it without comparing slices to each other.
This is where the pie wins. Datawrapper notes that readers spot values around 25%, 50% or 75% more easily in a pie than in a stacked bar or column chart. "Half of our tickets came by email" is a pie's best sentence.
Half of support tickets came in by email
Share of support tickets by channel, last quarter, %
Email is the largest slice at 50% (50 of 100), then Chat at 28%. The smallest is Phone at 22%.
Source: Sample data
| Channel | Share of tickets, % | Share |
|---|---|---|
| 50 | 50% | |
| Chat | 28 | 28% |
| Phone | 22 | 22% |
Datawrapper also advises giving the slice that matters a strong colour and the rest shades of one colour, because rainbow colours distract from the shares. A common practice is to start the largest slice at 12 o'clock and run clockwise from largest to smallest.
Two cases where even a valid pie adds little, again from Datawrapper. With only two values, a pie is really one number, so consider stating it in the text. And one pie shows one total, so if you want to compare two polls, use stacked bars instead.
Use a bar graph when
Use bars when any of these is true:
- The values do not add up to a whole, such as average satisfaction scores by region.
- Several values are close in size.
- Readers need to rank the categories.
- There are more than about four categories.
The FT Visual Vocabulary lists the ordered bar under "Ranking" and the bar under "Magnitude", where it notes that bars suit data that is not a time series and has long category names. Its part-to-whole section says that if the reader's interest is solely in the size of the components, a magnitude chart is the better choice. Its note on the pie itself warns that it is difficult to accurately compare the size of the segments.
Sort bars largest first unless the categories have a natural order, and start the axis at zero.
The same data as a pie and as a bar
Here is a sample survey: 400 staff voted on which feature to build next, with six answers. First as a pie.
As a pie, Reporting and Integrations look almost the same
Which feature should we build next? Share of 400 votes, %
Mobile app is the largest slice at 34% (34 of 100), then Reporting at 22%. The smallest is single sign-on at 5%.
Source: Sample data
| Answer | Share of votes, % | Share |
|---|---|---|
| Mobile app | 34 | 34% |
| Reporting | 22 | 22% |
| Integrations | 20 | 20% |
| Dark mode | 12 | 12% |
| Offline mode | 7 | 7% |
| Single sign-on | 5 | 5% |
The big slice is clear enough. The trouble is in the middle: Reporting and Integrations are two points apart, and as wedges they look the same. The three small slices are hard to tell apart without the labels.
Now the same numbers as horizontal bars, sorted largest first.
As bars, Reporting's lead over Integrations is easy to see
Which feature should we build next? Share of 400 votes, %
Mobile app is the largest at 34, 1.5 times Reporting (22). Single sign-on is the smallest at 5.
Source: Sample data
| Answer | Share of votes, % |
|---|---|
| Mobile app | 34 |
| Reporting | 22 |
| Integrations | 20 |
| Dark mode | 12 |
| Offline mode | 7 |
| Single sign-on | 5 |
Every bar starts from the same line, so the order reads top to bottom and the small gaps show. This data fails the pie test twice: six parts, and two shares close in size.
A quick test to choose
Ask these in order. The first answer that points to bars settles it.
- Do the values add up to one meaningful whole? If not, use a bar.
- Are there four parts or fewer? If not, use a bar, or group the smallest into "Other" if they do not matter to the point.
- Are the shares clearly different in size? If several are close, use a bar.
- Do readers need an exact order? If yes, use a bar.
If the data passes all four and one share carries the message, use a pie. Most data fails at the first or second question, which is why bars win so often. The which chart should I use tool walks through a wider version of this choice.
When neither is right
Change over time. If you are showing how a measure moves across months or years, use a line chart. The FT Visual Vocabulary lists the line first under change over time. The line graph maker covers it.
Many categories. Thirty categories in a pie are unreadable, and thirty upright columns cram the labels. Turn the bars horizontal and sort them, so long names sit on one line. If the tail does not matter, group it into "Other", as Datawrapper suggests for pies.
Two totals side by side. Two pies make readers compare angles across two circles. Datawrapper suggests stacked bars instead.
For other comparison questions, such as budget against actual or this year against last, see the best chart for comparison. Whatever you pick, make sure readers can tell the colours apart: colour-blind-safe chart colours covers that.
Making either chart in Chartsmade
Paste a table, a CSV or an Excel file, or describe the chart, then pick from the suggested charts. The bar chart maker draws grouped, stacked and horizontal bars. The pie chart maker draws pies and donuts with up to 12 slices, and past your slice limit the smallest fold into "Other".
Download a PNG at fixed sizes up to 1920×1080 or an SVG, with an optional transparent background, or share a live embed. It is free to start, and free downloads carry a small "Made with Chartsmade" line.
Questions
- When should a pie chart be used instead of a bar graph?
- When the values are shares of one whole, there are only a few of them (Datawrapper Academy suggests four at most), and the point is the rough size of one share, such as a half or a quarter. For anything that needs a precise comparison, use bars.
- When should you not use a pie chart?
- When the values do not add up to one whole, when there are more than about four parts, when several shares are close in size, when readers need to rank them, or when you want to compare two totals, such as two polls. A bar graph or a stacked bar reads better in each case.
- When should you use a bar graph?
- Whenever readers need to compare values accurately or put them in order, and whenever the values have no meaningful total, such as average satisfaction scores by region. Sort the bars largest first unless the categories have a natural order, and start the axis at zero.
- How many slices is too many for a pie chart?
- Datawrapper Academy says pie charts work best with four values at most and suggests a stacked bar or column chart beyond that. If a few small slices do not matter to the point, group them into one "Other" slice.
- Can a donut chart replace a pie chart?
- Yes, with the same rules. The FT Visual Vocabulary lists both under part-to-whole and notes that the donut's centre is a good place for extra information such as the total. A 2016 study by Drew Skau and Robert Kosara found that people estimated proportions about as accurately from a donut as from a pie.
Sources
- Datawrapper Academy, What to consider when creating pie charts
- Financial Times, Visual Vocabulary
- Cleveland and McGill, Graphical Perception, Journal of the American Statistical Association, 1984 (JSTOR)
- Cleveland and McGill, Graphical Perception, full text (PDF)
- Skau and Kosara, Arcs, Angles, or Areas: Individual Data Encodings in Pie and Donut Charts, EuroVis 2016 (PDF)