Don't Trust Pie Charts

Reading time:
time
min

I have never been a fan of pie charts. My two biggest issues with a pie chart are that: <ol><li style="font-weight: 400;" aria-level="1">They often are “the lazy option” in data visualization, signaling not much thought has been put by the designer into what story the data is actually telling.</li><li style="font-weight: 400;" aria-level="1">People are notoriously bad at comparing areas when compared with interval lengths (this phenomenon, when combined with the issues of the commonly used map projections leads to the surprising underestimation of the perceived size of Africa, as can be seen in <a href="http://kai.sub.blue/images/True-Size-of-Africa-kk-v3.pdf" target="_blank" rel="noopener">this great visualization by Kai Krause</a></li></ol> <blockquote>Need to improve your data visualization skills? Explore these <a href="https://appsilon.com/key-data-visualization-principles/" target="_blank" rel="noopener">5 key data visualization principles</a>.</blockquote> If you are not sure, here is a quick test I created for an internal discussion at Appsilon: <h3><strong>Which of the slices is the largest in the pie chart?</strong></h3> <img class="wp-image-14536 aligncenter" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01db7307dbcdd40af2e91_pie-chart-image-1-primary.webp" alt="don't trust pie charts" width="500" height="375" /> What do you think? Can you order the parts by their size? When I showed this pie chart to a group of people ~60% of them misjudged which of the parts is the largest, even though many of them work with data and various visualizations of it on a daily basis. <h3><strong>Disclaimer</strong></h3> Of course, this example is not a concluding argument, and this blog post is not a scientific study of human perception.  It is, however, a warning sign. <b>Don’t trust the pie charts - you will read them differently depending on how they are rotated.</b> To demonstrate it, let’s look at the above chart rotated by two different angles: <img class="wp-image-14534 aligncenter" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01db8fdb8ad62e9ccf5cb_pie-chart-duo-primary.webp" alt="pie chart comparison" width="500" height="375" /> On the left-hand side, it’s clear that the orange part is larger than the blue. But it’s hard to compare the orange and the green. On the right-hand side, it’s clear that the green part is larger than the orange. The fact that the perception of the relative sizes of the parts depends so strongly on the orientation of the same chart is surprising. One would expect rotating a circle shouldn't make a difference. <h2><strong>Bar chart vs pie chart</strong></h2> Almost always, a bar chart is easier to interpret than a pie chart. Here is the same data as above, shown on a bar chart: <img class="wp-image-14532 aligncenter" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01db9307dbcdd40af305b_Bar-chart-for-clarity-primary.webp" alt="bar chart vs pie chart" width="500" height="375" /> Note, that on this bar chart it's obvious what the order is. Additionally, even though there are no scales or grids provided, it's clear that the orange part is closer to the green in size than the blue. This information is almost impossible to read from the pie chart. <blockquote>For best results, stick to data visualization best practices. <a href="https://appsilon.com/data-visualization-best-practices-bar-plots/" target="_blank" rel="noopener">Learn and apply data visualization best practices for bar plots</a>.</blockquote> <h3><strong>Pitfalls of bar charts</strong></h3> Of course, bar charts can also be somewhat misleading. For example, when looking at bar charts we often assume meaning in the order of the bars. And while sometimes there is meaning in the order, (e.g., when using a bar chart on time-series data) there often isn't any at all (like in the above example). But that doesn't stop the viewer from interpreting it as such. The order may also skew the overall perception of the results as being positive if the bars are ordered in ascending manner or negative if in descending order. <h2>Tips for when you absolutely must use a pie chart</h2> Sometimes in the practice of a data scientist, you are forced to use a pie chart. Say for example, in an external requirement. When it's a must consider the following: <ol><li>It's worth explaining to the decision-maker the pitfalls of using pie charts (even asking them to run the quiz from this post can help!)</li><li>A pie chart can be made less misleading by adding the values on top of the parts. This way, when in doubt, a user can compare values. This solution is not ideal, as it rests on additional action of the user while the first, possibly erroneous, impression has already been made.</li></ol> <img class="wp-image-14538 aligncenter" src="https://webflow-prod-assets.s3.amazonaws.com/6525256482c9e9a06c7a9d3c%2F65b01dbb2a228de4b21dbc65_pie-chart-percentages-primary.webp" alt="pie chart with percentages" width="500" height="375" /> <h2>Summing up why you shouldn't use pie charts</h2> So did you guess correctly that the largest part of the first pie chart (and each one that followed) was green? Was it obvious? <blockquote>Need to share business insights with decision-makers? See which <a href="https://appsilon.com/top-3-bi-tools/" target="_blank" rel="noopener">BI tools are best for your use case</a>.</blockquote> Of course, missing tiny differences can happen, but please note that the green slice is actually larger than the orange slice by 8%. And the orange slice is larger than the blue slice by 11%. If it wasn't obvious to you, then can you really expect other viewers to interpret it differently? Don't leave interpretations of your data up to chance. Pick a more appropriate data visualization for your needs; choose the right tool for the job.

Have questions or insights?

Engage with experts, share ideas and take your data journey to the next level!

Is Your Software GxP Compliant?

Download a checklist designed for clinical managers in data departments to make sure that software meets requirements for FDA and EMA submissions.
Explore Possibilities

Share Your Data Goals with Us

From advanced analytics to platform development and pharma consulting, we craft solutions tailored to your needs.

Talk to our Experts
data visualization
ai&research