TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

I hate stacked area charts (2011)

369 pointsby dmitrig01almost 11 years ago

23 comments

nostromoalmost 11 years ago
I agree with the problem but disagree with the solution. I&#x27;d much prefer removing the stack completely and using overlapping plots, like this:<p><a href="http://i.imgur.com/zO7CuQG.png" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;zO7CuQG.png</a><p>In a chart like this no data is lost in presentation. You can easily answer questions like &quot;when did Android overtake iOS in marketshare?&quot; and &quot;is Windows Phone marketshare growing or shrinking?&quot;
评论 #7876171 未加载
评论 #7876376 未加载
评论 #7876163 未加载
评论 #7876523 未加载
评论 #7876195 未加载
评论 #7881403 未加载
评论 #7879574 未加载
评论 #7876229 未加载
LeoPantheraalmost 11 years ago
I was going to leave this as a comment on his blog but apparently comments are closed now.<p>Stacked bar charts are better, but only a little better.<p>Line charts overlaid on top of each other are most clear, to me.<p>Like this: <a href="http://i.imgur.com/kyvpiax.png" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;kyvpiax.png</a>
评论 #7877280 未加载
评论 #7876233 未加载
badusernamealmost 11 years ago
While I agree to some of the points made in the post, I don&#x27;t think the author provided a better alternative. Stacked bars are not any better for looking at how the percentage change on the green one.<p><a href="http://i.imgur.com/jfuJGu5.gif" rel="nofollow">http:&#x2F;&#x2F;i.imgur.com&#x2F;jfuJGu5.gif</a><p>Here is my solution:<p>* It retains the line aspect of it, which is essential as we are talking about a trend here.<p>* It easily allows you to see it both in stacked and overlapped lines. Each one of them is good at communicating clearly a certain point about the data.<p>* It also mitigates the problem in nostromo&#x27;s comment, where a whole bunch of lines could overlap without a clear view on a single point of interest.
评论 #7876510 未加载
arnarbialmost 11 years ago
The stacked bar chart is no better. Yes, it doesn&#x27;t have the same distortion of making green look smaller towards the right, but it is very hard to see the slow growth.<p>Just use a normal line chart.
评论 #7876133 未加载
评论 #7876192 未加载
cscheidalmost 11 years ago
Here&#x27;s a recent paper about how to compensate for this very illusion, by Heike Hoffman and Marie Vendettuoli: <a href="http://users.soe.ucsc.edu/~pang/visweek/2013/infovis/papers/hofmann.pdf" rel="nofollow">http:&#x2F;&#x2F;users.soe.ucsc.edu&#x2F;~pang&#x2F;visweek&#x2F;2013&#x2F;infovis&#x2F;papers&#x2F;...</a>
russellurestialmost 11 years ago
Rabble rabble rabble.<p>The solution described is incorrect. Area charts and column charts are used to display different types of information. Area charts (and line charts, similarly) are used to display continuous data - data that must pass through point B to get from point A to point C. Column charts are used for non-continuous data.<p>Some examples:<p>You should use an area chart (or just a line chart) when tracking your weight. If you weigh yourself on Tuesday and you weigh 150 lbs, and then weigh yourself on Thursday and you weigh 155 lbs, because of how weight works, you can assume that between Tuesday and Thursday your weight traveled through all the points required to get from 150 lbs to 155 lbs.<p>If you&#x27;re tracking the amount of hours you sleep every night, you should use a column chart. Just because you get 6 hours of sleep on Tuesday and 8 hours of sleep on Thursday doesn&#x27;t mean you got 7 hours of sleep on Wednesday. The data isn&#x27;t continuous.<p>For market share, that data is continuous - you can&#x27;t get from 10% market share to 15% market share without passing through all the percentages in-between. Therefore, a column chart is very much the wrong way to display that information.
评论 #7879605 未加载
stevewilhelmalmost 11 years ago
One of the things I dislike about stacked area charts (or stacked bar charts) is that are in many cases are used to show percentage breakdown over time.<p>The problem with representing percentage breakdown over time this way is that it visually eliminates the size of the sample, be it size of market, number of users, page visits, etc. It is visually implying that the same size has stayed the same over time.<p>Take these two charts representing the breakdown of smartphone shipments by manufacturer: <a href="http://s831.us/1kmFK28" rel="nofollow">http:&#x2F;&#x2F;s831.us&#x2F;1kmFK28</a> and <a href="http://s831.us/1kmFrEz" rel="nofollow">http:&#x2F;&#x2F;s831.us&#x2F;1kmFrEz</a><p>The first displays the percentage of market by manufacturer over time. In this chart, Apple&#x27;s performance looks mediocre.<p>Then look at the second graph that displays the number of units shipped by manufacturer. Here the amazing growth of the smartphone market is visually captured along with the breakdown of which manufacturers are driving or benefiting from the growth.
dllthomasalmost 11 years ago
There are things stacked charts can show you much more clearly than other things. For a particular process I&#x27;m working on, I have a timing breakdown rendered as an area chart (not normalized, ordered by total time) that showed something I&#x27;m not sure would have been visible any other way.<p>My ascii art skills are failing me, and this is going to be hard without visual aids, but I&#x27;ll try...<p>Overall, there was a significant and stable jump from best case to worse case (not <i>worst</i> case). What was interesting was that a chunk of time the size of that delta always fell in a single region but it was not always the same region but always roughly the same amount of time from the start. Since the process is small scale and kicked off at varying times, this means it was something asynchronous but triggered by our activity (or activity we were responding to).
owenversteegalmost 11 years ago
Site&#x27;s down, archive.org link: <a href="https://web.archive.org/web/20140409154002/http://www.leancrew.com/all-this/2011/11/i-hate-stacked-area-charts/" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20140409154002&#x2F;http:&#x2F;&#x2F;www.leancr...</a>
jakejakealmost 11 years ago
I&#x27;ve always felt like I had some deficiency when it came to viewing stacked area charts. I rarely liked them but couldn&#x27;t put my finger on why (not that I really gave it much thought). This article&#x27;s explanation of our eye&#x27;s tendency to see thickness rather than the vertical distance is spot on. I find the stacked columns way easier to read, although if you had a lot of data points I agree with several of the other posters that a boring old line chart is going to be the easiest to read.
capkutayalmost 11 years ago
Gauges and 3d area charts are other examples of misleading visualizations that take up a lot of space without deriving much meaning. Why do we keep seeing them? They&#x27;re flashy and make my dashboards look like the one my competitor is using! That&#x27;s just the world we live in.<p>After studying data visualization, it&#x27;s surprising how most popular dashboard widgets&#x2F;visualizations are relatively bad at encoding data versus simple things like sorted tables.
dsugarmanalmost 11 years ago
we use them on internal dashboards and they can be extremely useful. One use case is keeping track of bad orders, we work on the dropship model so the top line is our total bad order percentage and each area is the bad orders from a certain supplier. When the goal is to lower the top line we focus all our efforts on the largest areas.
thanatropismalmost 11 years ago
Hahaha. The solution described works if you have t=6. Try having t&gt;&gt;25.<p>The perfect use case for stacked area charts (but not pinned to 100%) is when there are many categories, but one is very predominant, and you&#x27;re interested in (a) the sum of all quantities and (b) the participation of the principal category.<p>Example: a country is mainly reliant on hydropower for domestic electricity; there are years where it doesn&#x27;t need any other source (it&#x27;s still cheapest....). So we want to track (1) the evolution of domestic consumption and (2) the share of hydropower (3) which years it hasn&#x27;t been enough.
kahawalmost 11 years ago
I think this more illustrates a problem with trying to generalize solutions. The final stacked area chart with green at the bottom works perfectly for this data set. Even the author&#x27;s proposed solution fails to emphasize the growth of the green section.
001skyalmost 11 years ago
To be fair, its &#x27;mis-use&#x27; that is the problem here. Like any tool, the right one should be selected for the job. There are people out there that generalize this same logic to &quot;charts&quot; without qualification (they prefer tables).
noswialmost 11 years ago
Not meta enough. When was the last time you designed the chart for a book or other static media?<p>I&#x27;d like to think that in this age there&#x27;s no need to force a static, unexplorable view of the data to the user at all.
评论 #7877556 未加载
merusamealmost 11 years ago
Talking about fancy visualisations, you should definitely have a look at horizon graphs<p><a href="http://square.github.io/cubism/" rel="nofollow">http:&#x2F;&#x2F;square.github.io&#x2F;cubism&#x2F;</a>
评论 #7878918 未加载
rwainalmost 11 years ago
Making a stacked graph interactive can help like this one I prepared earlier:<p><a href="http://theopenindex.org/" rel="nofollow">http:&#x2F;&#x2F;theopenindex.org&#x2F;</a>
jessaustinalmost 11 years ago
You don&#x27;t have to stack it like that:<p><a href="http://bl.ocks.org/mbostock/582915" rel="nofollow">http:&#x2F;&#x2F;bl.ocks.org&#x2F;mbostock&#x2F;582915</a>
yellowapplealmost 11 years ago
I hate stacked charts, period. I would much prefer a line graph - and with absolute values rather than percentages.
misaelmalmost 11 years ago
Stacked charts are no better when trying to compare categories other than the one closest to the x-axis against each other.
darksim905almost 11 years ago
Color me dumb, but that chart&#x2F;graph made perfect sense to me as it was.
quotientalmost 11 years ago
Yeah, that&#x27;s a fair point. These charts are misleading. Then again, if you generally trust charts for an easy interpretation of data, you&#x27;re probably going to be misled anyway. Perhaps I express an unpopular opinion, but the only way to really get a handle on the data is to <i>read the data</i>. (I find it to be a rare occurrence that a chart exposes --- rather than oversimplifies --- relationships in the data. They&#x27;re mostly okay for a cursory glance, but not for more. In this example, they&#x27;re not even okay for a cursory glance.)
评论 #7876872 未加载
评论 #7876302 未加载
评论 #7876197 未加载