When would you use a pie chart?

…the only worse design than a pie chart is several of them…

– Edward Tufte

When would you use a pie chart?

Pie charts have become one of the most recognizable and widely adopted chart types in business and data journalism. Being that the message that pie charts convey is almost universally understood, it is tempting to incorporate pie charts into your own data visualization. However – data visualizer beware – while the message that pie charts convey is immediately recognized (parts of a whole), the insights that pie charts provide are not.

Study after study has shown that pie charts are not the most effective means of communicating data. The pie chart’s primary limitation is that people are much better at comparing lengths and heights, as you would see in a bar or line chart, than they are at comparing areas within a pie. Further, the long tail results, or the thinner pieces of a pie, tend to become unreadable. Pie charts are also a very poor vehicle for communicating changes over time.

Despite the empirical evidence against pie charts, we continue to see them in some of the world’s most trusted news sources, stock reports, and corporate dashboards, among many other places. It is easy to make fun of people’s use of pie charts (like this one!), but we want to be clear that when you hear people recommend avoiding pie charts, it is not some kind of elitist-data-visualization-specialist credence – it is a best practice based in evidence. We’ve always viewed the prolific use of pie charts as a huge opportunity to educate and improve the data visualization space. While graphical methods of statistics date back over 200 years, we still have a lot to improve – which is a great thing for you if you are reading this and are interested in evangelizing the benefits of data visualization.

Bye Bye, Pie

To help, here is a simple exercise to illustrate the reduction in time to insight from a pie chart to more appropriate chart types.

First, have a look at this series of pie charts, showing the sales by department over a four-year period. Take 15-30 seconds and think of a couple of insights that the charts provide:

When would you use a pie chart?

You likely gathered that the entire pie was getting slightly larger over time (though it was hard to tell by how much and what that means), but it is pretty difficult to ascertain which pieces of the pie are causing the growth. With an easy tweak in Tableau, look at the exact same data as a line chart. Take the same 15 – 30 seconds to understand what the data is telling you – though it likely won’t take you nearly that long.

When would you use a pie chart?

Much easier, right? By converting our pie chart to a line chart, we can easily see that all three categories are on the rise, and by how much. We were able to process the visual and get to the insight much faster. If you are not as interested in the performance over time, and want to see how each category performed compared to each other each year, use a bar chart:

When would you use a pie chart?

Again, your brain processes heights of bars more easily than it can process areas in a pie. Using a bar chart also provides you more real estate to display the values, either as dollar amounts and/or percents of the whole (as you were trying to convey by using a pie chart). To take this one final step further, if you only care about comparing how each category performed against the others for one period in time, you can isolate the bar chart to show just the year in question:

When would you use a pie chart?

Just Can’t Let Go?

We understand that you may have a stakeholder that has a hard time letting go of pie charts. If you or a boss can’t quite go cold turkey, here are a couple of tips for using pie charts while you transition away from them:

  • Stick to five slices or less, including the “other” category. As mentioned previously, the thinner, long tail, slices become unreadable. If you find yourself saying, “but I have to represent all fifteen of my categories”, that is another vote for you moving away from pie charts.
  • Only use pie charts to show comparisons for one point in time. Avoid using them in a time series analysis as shown above.


What is a Pie Chart?

A pie chart helps organize and show data as a percentage of a whole. True to the name, this kind of visualization uses a circle to represent the whole, and slices of that circle, or “pie”, to represent the specific categories that compose the whole. This type of chart helps the user compare the relationship between different dimensions (Ex. categories, products, individuals, countries, etc.) within a specific context. Usually, the chart splits the numerical data (measure) into percentages of the total sum. Each slice represents the proportion of the value, and should be measured accordingly.

When would you use a pie chart?

How do I read a Pie Chart?

To read a pie chart, you must consider the area, arc length, and angle of every slice. Because it can be hard to compare the slices, meaningful organization is key. Slices in a pie chart should be organized in a coherent way, usually the biggest to smallest, to make it easier for the user to interpret. Start at the biggest piece and work your way down to the smallest to properly digest the data. The colors of the slices should match their respective blocks in the legend, so that viewers do not need to consult the legend as much.

Generally, the whole (or total of the quantitative values or slices) is not listed within the pie chart. Typically, it can be listed in the text near the chart, the table explaining specific data measurements, or as a separate BAN in another dashboard.

Three-dimensional pie charts are difficult to read and misleading. Since the interpretation of a pie chart relies on the area, arc length, and angle of each slice, a three-dimensional representation of this chart type will tilt the pie and skew your visual perception of its slices.The use of a three-dimensional pie chart can make an accurate comparison of categories nearly impossible due to the visual imbalance that can exist between slices.

What type of analysis do Pie Charts support?

Pie charts should be used to show the relationship of different parts to the whole. They work best with dimensions that have a limited number of categories. If you need to emphasize that one section of the whole is overrepresented or underrepresented, a pie chart can make that story within the data stand out. Pie charts do not work well for comparing exact numbers

When and how to use Pie Charts for Visual Analysis

If you have a dimension with just a couple of categories to compare, then a pie chart can help display each value of a category within the whole. The chart should read as a comparison of each group to each other, forming a whole category. The “whole” could be anything so long as the category can be split into separate slices that are distinguishable from each other.

Use a pie chart if:

  • You have a total number that can be split up into 2-5 categories.
  • One category outweighs the other by a significant margin.

Do not use a pie chart if:

  • Your dimension has too many categories.
  • Similar percentages/numbers exist between different values within the chosen dimension.
  • Data doesn’t represent a uniform “whole”, or the percentages don’t measure to 100 percent.
  • There are negative values or complex fractions in your measure value.

Pie Chart Best Practices:

  • Each pie slice should be labeled appropriately, with the right number or percentage attached to the corresponding slice. The slices should be ordered by size, either from biggest to smallest or smallest to biggest to make the comparison of slices easy for the user.
  • Limit the use of legends and external references as they make it harder to recall the dimensions.
  • Labels should be attached to the slices themselves whenever possible.
  • When the chart has more than 5 slices you may want to begin considering a different chart type, however if you want to continue make sure to use a legend, list, or table to provide additional context for the reader.
  • NEVER complicate the visual display. A 3-dimensional pie chart is much harder to analyze. Obfuscating the chart with unnecessary graphics or logos can make it overwhelming.

If there is a comparison to be made between multiple categories, consider a line chart instead. Line charts provide an easy overview of the patterns and trends found in multiple sets of data, as well as the effect they have on each other.

Great examples of Pie Charts


When would you use a pie chart?

This pie chart shows the percentage of total sales per regional market.

  • No more than five slices were used.
  • The largest slice starts from the top of the circle.
  • Slices are colored with distinct, vivid colors. Consider using colors friendly to colorblind users.

This pie chart takes data from the east market sales and splits them by the variety of coffee purchased.

  • This chart shows two radically different data points easily distinguished from each other
  • The dominant slice has a bold color
  • The smaller slice has a neutral/subdued color

When would you use a pie chart?

Ineffective examples of Pie Charts and Alternatives

POOR EXAMPLE

In attempting to display the many kinds of coffee and tea sold at the market, someone created a very confusing pie chart.

  • Too many slices clutter the chart
  • Slices show similar values Labels don’t align with the slices
  • The same color is used twice

When would you use a pie chart?

BETTER ALTERNATIVE

The best way to present this kind of data would be through a bar chart. Bar charts provide space between categories, so that each bar is easily distinguished.

When would you use a pie chart?

Furthermore, each bar is aligned to a common baseline, the labels can be read more easily, and the relative size of each bar can be more easily determined by the viewer.

POOR EXAMPLE

In attempting to display the many kinds of coffee and tea sold at the market, someone created a very confusing pie chart.

Two or more pie charts should not be placed side by side for a comparison. Multiple markets show different percentages for the kinds of products sold.

  • The connection between markets is not clear
  • One pie chart presents three slices, while the others present four

When would you use a pie chart?

BETTER ALTERNATIVE

Instead, a stacked bar chart will make a better visual aide to compare multiple categories within a dimension.

Stacked bar charts can also display parts of a whole through percentages. When the parts of the whole equal 100 percent of the total, users can better grasp the comparisons between categories.

When would you use a pie chart?

Further considerations and supplemental material

Bar charts and stacked bar charts can be good potential alternatives to pie charts. They can better show the relative size and importance of measure values broken down by the categories of a selected dimension. They are also better equipped to show more categories at one time than a pie chart.

When should a pie chart be used?

There are two primary use cases for a pie chart: If you want your audience to have a general sense of the part-to-whole relationship in your data and comparing the precise sizes of the slices is less important. To convey that one segment of the total is relatively small or large.

What is pie chart and when it is used?

Pie charts are often used to represent sample data—with data points belonging to a combination of different categories. Each of these categories is represented as a “slice of the pie.” The size of each slice is directly proportional to the number of data points that belong to a particular category.

When should you not use a pie chart?

If you still feel the urge to use them, make sure you only use them for a percentage breakdown where each slice represents a certain percentage out of 100% and order the slices in size to make it easier to read. Never use a pie chart if it has more than 5 slices and never-ever make it 3D.

When would you use a pie chart instead of a bar graph?

In short, a pie chart can only be used if the sum of the individual parts add up to a meaningful whole, and is built for visualizing how each part contributes to that whole. Meanwhile, a bar chart can be used for a broader range of data types, not just for breaking down a whole into components.