Stacked area chartA total and the layers that build it.
Layers piled on top of each other over time. The top edge is the total; each band in between is one part of it.
- Answers How did it change?
- Your data parts of a total per moment
- Layers 2 to about 5
- Moments 5 to hundreds
- Excel and Power BI built in
- Website
- App
- Marketplace
What is a stacked area chart?
A stacked area chart is an area chart with several layers piled on top of each other: the first starts at zero, the next starts where the first ends, and so on. The top edge is the total, and the thickness of each band is one part. It shows how a total grew over time and which parts built it.
An online shop sells through three channels: its website, an app and marketplaces. A stacked area chart of monthly sales shows the total climbing, and the app's band getting thicker month by month.
Why use a stacked area chart?
Because it shows the total and its parts over time, in one picture.
- The total is the top edge. No separate total line needed.
- Parts show their weight. A thick band is a big share of the total.
- Growth by part. A band that widens is a part that grew.
- Built in. Excel, Power BI and Python draw it in a click or a line.
How does a stacked area chart work?
Three steps stack layers into a total.
- Step 1 of 3The first layer from zeroThe website's sales, filled from zero.
- Website
- App
- Marketplace
- Step 2 of 3The next on topThe app starts where the website ends.
- Website
- App
- Marketplace
- Step 3 of 3The top edge is the totalMarketplace on top: the highest edge is all sales together.
- Website
- App
- Marketplace
What are the parts of a stacked area chart?
Four parts, and each one has a job.
- Website
- App
- Marketplace
- Top edgethe total of all layers
- Bottom layerthe only one that starts at zero
- Value axisthe scale, from zero
- Time axisthe moments, left to right
How do you read a stacked area chart?
Three looks, in this order.
- Read the top edgeThe total climbs from 70 to 102.
- Website
- App
- Marketplace
- Read a band's thicknessThe app's band grows from 10 to 33: it drove most of the growth.
- Website
- App
- Marketplace
- Only the bottom layer has a flat startThe website starts at zero, so its own line is easy to read; the others are not.
- Website
- App
- Marketplace
What kinds of stacked area chart are there?
The same layers, three ways.
- Kind 1StackedThe top edge is the total.
- Website
- App
- Marketplace
- Kind 2100% stackedAlways full height: the share of each channel.
- Website
- App
- Marketplace
- Kind 3StreamgraphLayers around a centre line, smooth: for many layers and a feel for change.
- Website
- App
- Marketplace
When should you use a stacked area chart?
When the parts add up to a total and both matter over time.
- the parts add up to a meaningful total
- the total's trend matters
- there are 2 to about 5 layers
- the biggest or steadiest layer can go at the bottom
- the exact trend of each part matters (a line chart)
- only the shares matter (a 100% stacked area)
- there are many layers (small multiples)
- values can be negative (a line chart)
Stacked area chart or line chart?
Stacked for the total, lines for each part's own trend.
- Website
- App
- Marketplace
- Website
- App
- Marketplace
On the line chart, each channel has its own line from zero, so its trend is exact, but the total must be added up in your head. The stacked area shows the total at the top edge, but a middle band rides on the layers below it, so its own trend is harder to read.
How do you make a stacked area chart?
Built in everywhere: Excel, Power BI, Google Sheets and Python.
In Excel, select the dates and the parts and choose Insert > Area chart > Stacked area. In Power BI, it is the stacked area chart visual, with the part in the legend. The settings are in area charts in Power BI. In Python, matplotlib draws one with plt.stackplot.
What goes wrong with stacked area charts?
The most common mistake, and its fix: too many layers.
- Website
- App
- Marketplace
- Shop
- Phone
- Partners
Six layers make thin, wobbly bands in the middle that no one can read. Small panels on one scale give each channel its own clear line.
| Mistake | Why it hurts | Fix |
|---|---|---|
| Too many layers | Thin middle bands are unreadable | 2 to 5 layers, or small multiples |
| Reading a middle band's trend | It rides on the layers below | A line chart for the parts |
| A jumpy layer at the bottom | Every layer above wobbles with it | The steadiest layer at the bottom |
| Parts that do not add up | The top edge is not a real total | A line chart |
| Negative values | Layers fold over each other | A line chart, or columns |
Every chart for “How did it change?”
- LinesLine chartPoints in time joined by a line, for the shape of a trend.
- LinesStep chartA line that jumps and holds, for values that change at moments, like prices.
- LinesSparklineA tiny line without axes next to a number, for the trend at a glance.
- LinesIndex chartEvery line starts at 100, so growth compares fairly across sizes.
- LinesSlope chartTwo moments and a line per item, to see who rose and who fell.
- LinesConnected scatter plotTwo measures over time, the points joined in the order they happened.
- AreasArea chartA line chart with the space below filled, for amounts over time.
- Areas100% stacked area chartLayers that always fill the height, for shares over time.
- AreasStreamgraphFlowing layers around a centre line, for many series that rise and fall.
- AreasHorizon chartA line chart folded into bands of colour, for many series in little space.
- Columns and linesCombo chartColumns and a line on one chart, for an amount and a rate together.
- Rank over timeBump chartRanks over time, one line per item, to follow who moves up and down.
- Rank over timeRibbon chartStacked columns joined by ribbons, the largest always on top.
- Patterns in timeCalendar heatmapEvery day a square on a calendar grid, busy days darker.
- Patterns in timeCycle plotEach month or weekday as its own little line, for seasons.
- PricesCandlestick chartOpen, high, low and close for each period, the way prices are shown.
- EventsTimelineEvents placed on a line in the order they happened.
Read on, step by step.
Does it fit your data? Try it.
Paste your table into Chart Compass, say what the chart should show, and see the charts that fit, drawn with your own numbers. It runs in your browser, so the data stays with you.