Understanding Pie Charts

Chocolate Pie Chart

Pie charts are perhaps the most ubiquitous chart type; they can be found in newspapers, business reports, and many other places. But few people actually understand the function of the pie chart and how to use it properly. In addition to issues stemming from using too many categories, the biggest problem is getting the basic premise: that the pie slices sum up to a meaningful whole.

The Part-Whole Relationship

The pie chart is actually a very clever visual design that conveys one fact above all others with a minimum of visual cues: that the circle (the “pie”) represents some kind of whole, which is made up of the slices. Add up all the slices and you get the complete pie. Take out one slice, and the whole will be missing exactly this part. Enlarge one part, and other parts will need to shrink.

What this means is that the pie chart first and foremost represents the size relationship between the parts and the entire thing. If a company has five divisions, and the pie chart shows profits per division, the sum of all the slices/divisions is the total profits of the company.

If the parts do not sum up to a meaningful whole, they cannot be represented in a pie chart, period. It makes no sense to show five different occupations in a pie chart, because there are obviously many missing. The total of such a subsample is not meaningful, and neither is the comparison of each individual value to the artificial whole.

Another example that Chandoo used recently is counting uses of words. Clearly, there are other meanings of “bar” (take bar mitzvah or bar none, for example), and the sample is very artificial (there are also too many slices, see below).

Pie chart of contexts the word "bar" is used

There is one way around this issue, which is to have an other category in the chart. This may work in some cases, but in others it can be difficult to come up with one (when the other cases are not known), or that category may end up obscuring some of the meaningful data (e.g., by being the largest category).

Slices have to be mutually exclusive; by definition, they cannot overlap. The data therefore must not only sum up to a meaningful whole, but the values need to be categorized in such a way that they are not counted several times. A good indicator of something being wrong is when the percentages do not sum up to 100%, like in the infamous Fox News pie chart.

The Foxpie

Here, people were asked which potential candidates they viewed favorably, but they could name more than one. The categories are thus not mutually exclusive, and the chart makes no sense. At the very least, they would need to show the amount of overlap between any two (and also all three) candidates. Though given the size of the numbers and the margin of error in this data, the chart is entirely meaningless.

How to Read Pie Charts

There are two features that let us read the values on a pie chart: the angle a slice covers (compared to the full circle), and the area of a slice (compared to the entire disk). Research suggests that we look at the angle in the center, essentially reducing the chart to just the crossing lines there. We are not very good at measuring angles, but we recognize 90 and 180 degree angles with very high precision. Slices that cover half or a quarter of the circle will therefore stand out. Others can be compared with some success, but reading actual numbers from a pie chart is next to impossible.

We have conducted some research that showed that people’s confidence when reading numbers from pie charts is much lower than from other kinds of charts, and with good reason: their accuracy was also much lower. As a consequence, numbers usually need to be shown as well, and the number of slices needs to be limited to allow the viewer to get an overview without having to try to read the chart in detail (which is frustrating).

Which is larger in the following chart, the black or the yellow slice? What about black and green? How much larger? How sure are you? And where do you look to compare?

pie chart

Now compare this to the bar chart. There is no doubt which is larger, or by how much. It’s also easy to add a scale, gridlines, etc. When you care about comparing the parts, a bar chart is clearly superior. What the bar chart does not convey, though, is the part-whole relationship: changing the size of the green bar does not necessarily mean that any other bar has to change.

bar chart

What the bar chart does not let you do easily is compare one bar to the sum of all bars: that is the realm of the pie chart (and a few others).

Pie Chart Mistakes

Care must be taken to retain the salient feature of the chart: the center. In a report on the number of words consumed each day, a pie chart was prettified with a highlight in the middle. That obscures the spot where the lines meet, and thus makes it impossible to judge angles, making the comparison more difficult.

Pie chart of words consumed

This is similar to the problem with a colleague of the pie chart, the donut chart. It is similar to the pie chart, but is missing a circular area in the center. This example was found on Jon Peltier’s blog.

Donut charts

While the center may be a convenient spot for labeling, it degrades the chart’s readability. The comparison between separate pie or donut charts is also largely meaningless, and should be avoided. To show progression over time, line and bar charts are much better suited. To compare two different kinds of data (absolute numbers and fractions), it makes more sense to split them up by data to compare than by year.

Other distortions include the ubiquitous 3D pie chart, which introduces perspective distortion and requires our very underdeveloped sense of depth to make up for it. These charts may be more spectacular, but in terms of communicating data, they are mostly useless.

Number of Slices

The most common problem is trying to show too many categories in a single pie chart. Wikipedia has this beautiful specimen on the page on U.S. states by population. The first four states are clearly larger than any of the rest, and from there the chart turns from a meaningful visualization of numbers into a colorful pattern.

Pie chart of U.S. state populations

A bar chart would have been a much better idea here, because it would have allowed easier comparison between the states. Grouping together states of similar size into separate charts with different scales would have made it possible to clearly see the differences for all of them, not just the most populous ones.

When to Use Pie Charts

There are some simple criteria that you can use to determine whether a pie chart is the right choice for your data.

  • Do the parts make up a meaningful whole? If not, use a different chart. Only use a pie chart if you can define the entire set in a way that makes sense to the viewer.
  • Are the parts mutually exclusive? If there is overlap between the parts, use a different chart.
  • Do you want to compare the parts to each other or the parts to the whole? If the main purpose is to compare between the parts, use a different chart. The main purpose of the pie chart is to show part-whole relationships.
  • How many parts do you have? If there are more than five to seven, use a different chart. Pie charts with lots of slices (or slices of very different size) are hard to read.

In all other cases, do not use a pie chart. The pie chart is the wrong chart type to use as a default; the bar chart is a much better choice for that. Using a pie chart requires a lot more thought, care, and awareness of its limitations than most other charts.

Alternative: Squaring the Pie

A little-known alternative to the round pie chart is the square pie or waffle chart. It consists of a square that is divided into 10×10 cells, making it possible to read values precisely down to a single percent. Depending on how the areas are laid out (as square as possible seems to be the best idea), it is very easy to compare parts to the whole. The example below is from a redesign I did a while ago about women and girls in IT and computing-related fields.

Girls in IT-related areas waffle chart

Unfortunately, no common software I know creates this chart. But Chris Gemignani at Juice Analytics has collected a few easy ways to make them in Excel.

Respect the Pie!

It is easy to pounce on people’s incompetent uses of pie charts. But used the right way, they are very powerful: they are easy to read, familiar, and pleasant to look at. Care must be taken to not overload the chart or use it as a default to show data it is not suited for.


Chocolate Pie Chart by Mary&Matt

41 responses to “Understanding Pie Charts”

  1. Nathan Avatar

    Finally, someone writes a post about the pie chart that doesn’t say it sucks. I’m so tired of hearing how bad it is and about angles and human perception, blah blah. Sure, you can’t tell between the small differences between slices, but at the end of the day, the visualization is just a guide to show you where to look in your data.

    1. saaya Avatar

      hahaha feel your pain well not literally but eeeh

      1. Osarhemen Avatar

        In the pie graph on Computer Preferrences, I don’t quite understand how to find the percentage of the mainframe computers if it’s not there.

        1. BOi Avatar
          BOi

          Same i am doing this in science and I already gave up on it.

  2. Thiagu Avatar

    I like to add one point

    -Colour also place important role in pie chart.

    I recentely made a pie chart for chartsbin.com, if you have a moment please check yourself  Surface Area of the Earth

    1. Osarhemen Igbinosun Avatar

      I know the colors of the pie graph, but what does that have to do with the graph about Computer Preferrences? I don’t quite get it!

      1. Osarhemen Igbinosun Avatar

        In the pie graph on Computer Preferrences, it shows a survey of a group of professionals who were asked what type of computer they preferred. What is the percentage of the group preferred to work on mainframe computers? Help me to understand this question to find the answer, please?

  3. John Avatar
    John

    I like the first part on pies, but the second on waffles not so much.

    I don’t find the coloring of squares in one corner very easy to estimate. Yes, I can count them, but then why not use the numbers themselves? In fact, for the example you use, the numbers are far more expressive than the waffles.

  4. Infoholic Avatar

    Given that it is just as easy (in most charting tools) to create a bar chart with a 100% scale then why ever use a pie chart.

    We may be used to using pie charts but that doesn’t make them right.

    Also @Nathan you are right about the visualisation being a guide to where you should look in the data but quite often a pie chart is presented without the accompanying data thus increasing the risk of incorrect interpetation.

  5. Jorge Camoes Avatar

    I like to protect the poor and opressed pies (I write about that more than I should) and it’s nice to know I’m not alone. Actually, a donut is even better than a pie chart  (if you can do it right, a donut is like as a pie on steroids).

    @Infoholic: a pie chart performes better than a 100% stacked bar because its’s easier to find anchoir points (90%, 180%).

  6. derek Avatar

    Pie charts are like that little thug in school that all the adults tried to make excuses for. Look, it only took him three tries to spell the word “cat”!

    If you can’t use a pie to detect subtle differences in quantity, it’s no use trying to make excuses for it by saying it works okay with gross differences. *Anything* works okay with gross differences, including just writing the numbers down.

  7. Noob Avatar
    Noob

    can u guys answer this question its my school MCQ Queston.
    When we have to show value as part of a whole picture, which type of chart is used.
    ► Bar chart
    ► Pie chart
    ► Line graph
    ► None of the given

    1. saaya Avatar

      pie chart absolutely

    2. Cortez Brayboy Avatar
      Cortez Brayboy

      You can use all three, but only for the identical purpose of showing value in a whole picture. The reason is you would need to show trending times of value, fluctuations and other factors. More than one pie graph would be needed because of the times of value recorded; related to the line or bar graph chosen.

  8. fudgeman Avatar
    fudgeman

    i want the choco;ate pie graph.

    (:

    1. fudgeman Avatar
      fudgeman

      i accidentaly spelled chocolate wrong.

      oops!

      1. Penny Avatar
        Penny

        Well of course you want the chocolate pie graph, you gave yourself a ridiculous nickname like Fudgeman. Stupid a******.

  9. Jon Avatar
    Jon

    Robert,

    The ‘squaring the pie’ charts are very similar to unit charts, which I’ve used in some of my work (see here: http://cbo.gov/publication/43139). However, Stephen Few doesn’t like unit charts (http://www.perceptualedge.com/articles/visual_business_intelligence/unit_charts_are_for_kids.pdf) and I was wondering what you thought of his position.

    Thanks,
    Jon

  10. Church MN Avatar

    Very helpful post on how to maximize the value of using pie charts.

  11. 3D Systems Avatar

    I appreciate the information on the squaring of the pie chart (the waffle chart).

  12. War on Pie Charts Avatar

    We hope people head these recommendations however your initial recommendations for when to use them are slightly misguided. Never, is the appropriate time to use a pie chart. Do not negotiate with visual terrorists.

  13. Jonathan Avatar
    Jonathan

    “But used the right way, they are very powerful: they are easy to read, familiar, and pleasant to look at.”

    You should have put the first five words of that sentence in bold, 32-point text. The problem with pie charts that they almost never get used in the right way, and there are so few situations in which they can be used well, that it’s usually just hopeless. You may as well argue that 550cc motorbikes are a good idea for 16 year-old boys – if they ride them in the right way.

  14. John Warren Avatar

    This Is So Helpful ! Thank you so much for the source! I’m now satisfied and confident for my Report !

  15. ezra abrams Avatar

    aside from your opinion as to the goodness or badness of various charts you show, do you have any data ?
    ie, if you and some other experts agree as to the message a chart is suppose to convey, and then you show the chart to a group of non experts, and show a diff group a “better” chart, and see if the two groups differ in their response

    with out this sort of data, it is just your opinion.
    opinions are good, but data is better.
    there is, actually, a fairly large, but extremely diffuse data literature on graphs

  16. Maria Avatar
    Maria

    It’s to much to read!!

  17. Ray Avatar
    Ray

    I believe the main take-away from this article is what not to do to get the most accurate representation of data. I now realize that the total data sample needs to be 100% or a pie chart is meaningless.

  18. Jane Avatar
    Jane

    thank you! helped me a lot. :)

  19. padma Avatar
    padma

    could some one tell me if i have a certain percent and i want to add a certain percent to it and how will it affect the other proportions

    1. Anasusakiki Avatar
      Anasusakiki

      yes me tooi am making a pie chart poster wish me luck

    2. HLeplaa Avatar
      HLeplaa

      You make the total larger, for instance going from 100 to 110% (which becomes the new 100%). To calculate how percentages change then, you have to calculate the factor to make 110 into 100 (dividing it by 1.1). So: 33% becomes now 30%.

  20. shirley thornton Avatar
    shirley thornton

    this information was very helpful when determining what type of chart to use.

  21. thykier Avatar

    Great article about choosing the right tool for the right set of data. The pie-chart is great.
    I also like the waffle chart. But would like to say, wouldn’t it give more value to the reader if, in your example, 56% was “half” the box coloured, and not just the corner? It would be easier to read and decode the information.

  22. Sam Firke Avatar

    “Unfortunately, no common software I know creates this chart. ” – try R’s “waffle” package.

  23. jonpeltier Avatar
    jonpeltier

    I guess I’m one of those unabashed pie chart bashers. Yet I read these studies with strong interest, because they have been carried out and analyzed systematically and logically. I’ve always felt that a two-segment pie (what Jorge Camoes calls a one-segment pie) is somewhat effective if used appropriately. It’s good to see a good analysis that shows how to maintain their effectiveness.

    It’s also good to know that what we pie-bashers always thought has some analytic backing:

    “If you’re after precision, don’t distort your pie charts. Certainly don’t change their shapes, but also don’t explode them or make a slice larger.”

    1. jonpeltier Avatar
      jonpeltier

      Sorry, I had two posts open, and I meant to leave that last comment in Robert’s more recent article A Pair of Pie Chart Papers.

  24. Jopo Avatar

    ” What the bar chart does not convey, though, is the part-whole relationship: changing the size of the green bar does not necessarily mean that any other bar has to change.”

    “What the bar chart does not let you do easily is compare one bar to the sum of all bars: that is the realm of the pie chart (and a few others)”.

    Those two sentences are wrong. If you compare like with like, then the sum of the bars must be 100% (or 1 if using proportions). Therefore increasing the green bar will mean that one or more other bars will reduce in size. The percentage increase has to come from somewhere.

    Following on from that, comparing like with like, the bar chart implicitly allows the comparison with part to whole. as the whole is always 100%.

  25. J. Astor Avatar
    J. Astor

    “the comparison between separate pie or donut charts is also largely meaningless”

    Factually incorrect – in the donut charts you use as an example above this statement, the two are proportional to each other. The ratio between the sizes of the two donuts is equal to the ratio between the total amounts depicted.

  26. […] From Robert Kosara’s article on Eager Eyes: […]

  27. Teagan Avatar
    Teagan

    When a larger section of a pie shart is sperated from the others what does that mean?

    1. jonpeltier Avatar
      jonpeltier

      It means the creator of the chart didn’t trust you to notice the large piece while it was still attached to the chart.

  28. Ademário Nobre Avatar
    Ademário Nobre

    Very good. I need to reread this article annually to follow these best practices. Tks.