Which Chart Should I Use? Pie Chart vs. Other Charts

A simple guide to choosing between a pie chart, bar chart, stacked bar, line chart, histogram, treemap and table for your data.

By the PieChartTool team · Updated · 6 min read

Quick answer

Use a pie or donut chart to show parts of one whole with 2–7 categories. Use a sorted bar chart to compare amounts, a line chart for change over time, a 100% stacked bar for shares across years or groups, a histogram for distributions, a treemap for many or nested categories, and a table when exact values matter.

Pick a chart by the question your reader should answer, not by what looks nice. In William Cleveland and Robert McGill’s 1984 study of graphical perception, people judged positions and lengths more accurately than angles and areas, which is why bar charts beat pie charts for precise comparison, while a pie still says “part of a whole” best with about 2–7 slices. Start with the question in the left column, then use the chart on the right.

The questionBest chartWhy not a pie?
What share of the whole is each part? (2–7 parts)Pie or donutA pie is the right choice here.
Which category is biggest, and by how much?Bar chart, sortedLengths are easier to compare than angles.
How did shares change between years?100% stacked barComparing angles across several pies is very hard.
How did a value change over time?Line chartA pie has no time axis.
How are values distributed (ages, heights, times)?HistogramContinuous data has no natural “parts of a whole”.
Parts with sub-parts?Nested pie, sunburst or treemapA flat pie can show only one level.
Many parts (10+) of a whole?Treemap or sorted barToo many thin slices to read.
One number against a target?Gauge or percentage circleA two-slice pie works, but a gauge reads faster.
Exact values matter most?A tableCharts show patterns, tables show precise numbers.

Pie chart vs. histogram

A histogram, a term introduced by the statistician Karl Pearson in the 1890s, groups a continuous measurement into ranges (0–10, 10–20 …) and shows how many values fall in each. The bars touch because the ranges are continuous. A pie chart shows categories that make up a whole. If your categories are ranges of a measurement, such as age groups, a histogram or bar chart keeps their order visible; a pie hides it.

Pie chart vs. line chart

Use a line chart whenever time is on the axis: monthly sales, website visits per day, temperatures. If you want to show how the mix changed over time, use a 100% stacked bar or stacked area chart rather than a row of pies.

Pie chart vs. treemap

A treemap, invented by Ben Shneiderman at the University of Maryland around 1990, divides a rectangle into nested rectangles sized by value. It handles dozens of categories and several levels at once, which a pie can’t. For a few categories, a pie is simpler and more familiar.

Pie chart vs. stacked bar

A single 100% stacked bar shows the same part-to-whole data as a pie in a strip. Its real strength is comparison: put several stacked bars side by side to compare the mix across years, regions or groups.

When the point is ranking the categories, a sorted bar chart is clearest.

Not sure yet? Paste your data into the pie chart maker and switch between pie, donut, nested and bar charts with one click. More detail in pie chart vs. bar chart and pie chart vs. donut chart.

Key takeaways

  • Pie or donut: parts of one whole, 2–7 categories.
  • Sorted bar chart: comparing amounts or ranking many categories.
  • Line chart: change over time. 100% stacked bar: change in shares over time.
  • Histogram: distribution of a continuous measurement. Treemap: many or nested categories.
  • Table: when readers need exact values.

Frequently asked questions

What is the difference between a pie chart and a histogram?

A pie chart shows categories as shares of one whole. A histogram groups a continuous measurement, such as ages or times, into ranges and shows how many values fall in each.

When should I use a line chart instead of a pie chart?

Whenever time is involved. A line chart shows how a value changes over days, months or years; a pie chart shows a single moment.

What chart is best for comparing proportions across years?

A 100% stacked bar chart, with one bar per year. It is much easier to compare than a row of pie charts.