What Is a Stream Graph? Reading a Baseline-Free Chart
A stream graph is a stacked area chart with no flat baseline. See a live example, what it hides, when to pick one over a stacked area, and how to build one.

What is a stream graph?
A stream graph is a stacked area chart that has given up its flat baseline. Instead of every band sitting on zero, the whole stack is arranged around a centre line that moves, so the bands flow around each other and the outline becomes a ribbon that swells and narrows over time. The thickness of a band is its value. Its vertical position carries no information.
Here is one with real data: world electricity generation by source from 2000 to 2025, in terawatt-hours. The total roughly doubles from 15,279 TWh to 31,772 TWh, and you can watch the bottom of the stream sink as it does. Hover or tap a band to read its value.
Three things show up without reading a single number. Coal, the dark band at the bottom, stays the thickest band for the whole period. Solar, the yellow band on top, is a sliver until about 2012 and by 2025 is as thick as wind. Oil thins out year after year. The figures are from Ember via Our World in Data.
Where the stream graph comes from
The New York Times published a chart of box office revenue for 7,500 films over 21 years in February 2008. Lee Byron and Martin Wattenberg then described the layout in their paper Stacked Graphs: Geometry and Aesthetics (IEEE Transactions on Visualization and Computer Graphics, 2008), which is where the name "streamgraph" comes from. Its predecessor, ThemeRiver, was presented by Havre, Hetzler and Nowell at IEEE InfoVis 2000.
What a stream graph encodes, and what it hides
| Element | What it means |
|---|---|
| Band thickness | That category's value at that moment |
| Total thickness | The sum of all categories at that moment |
| Horizontal position | Time |
| Vertical position | Nothing: the layout chooses it to keep the shape smooth |
The last row is the whole trade. In a stacked area chart the bottom series sits on zero and can be read exactly. In a stream graph no band sits on anything fixed, so no band can be read exactly, and two bands at different heights are hard to compare by eye.
You can see the cost in the chart above. Is gas in 2025 larger than hydro? Gas is 6,921 TWh and hydro is 4,435 TWh, but the stream gives you only "gas looks thicker". The popup supplies the number. The total is also awkward to read, because it is the distance between the top edge and the bottom edge, and both edges move.
When should you use a stream graph?
- You have many categories over many time points. Ten to thirty bands is where the form pays off. Our example has nine, which is the low end. We chose it because the story is the shape: solar going from nothing to about a quarter of coal's output.
- The rhythm is the story. Seasonality, waves of popularity, one thing rising as another fades.
- The chart is interactive. Hover values give back the precision the layout removed, so stream graphs work better online than in print.
- The data is dense and continuous. Yearly, monthly or weekly values over a long span. Sparse points get smoothed into odd blobs.
When to use something else
| If you need to... | Use |
|---|---|
| Read exact values for every category | Stacked area chart or small multiples of line charts |
| Compare a few categories at a few dates | Stacked bar chart |
| Show rank rather than size | Bump chart |
| Show where a quantity flows between stages | Sankey diagram |
Also avoid a stream graph when values can be negative, because there is no zero line to put them on, and when the chart is going into print, where nobody can hover. Below about eight categories it is simply a harder-to-read stacked area chart.
Band order and colour do real work
Every band is stacked in a sequence, and the sequence changes how the chart reads. In PlotSet's streamgraph template the bands follow the order of your data columns by default, so the order of your spreadsheet columns is your design decision. Group related categories next to each other, and keep the order fixed between versions.
Colour does the job an axis normally would. In the example, fossil fuels are greys, nuclear is purple, hydro and wind are blues and greens, and solar is yellow, so you can follow "the grey ones" without opening the legend. Avoid a rainbow for unordered categories, since it suggests an order that is not there.
How to make a stream graph
- Lay out one row per time point and one column per category, with the time in the first column. The chart above is 26 rows (2000 to 2025) and nine value columns. Values must be zero or positive.
- Export a CSV from Excel or Google Sheets. In PlotSet you can upload the CSV, paste the cells, or connect a Google Sheet shared as "Anyone with the link".
- Open the stream graph maker and bind the first column to the labels and the rest to the values.
- Put the columns in the order you want the bands to stack, then pick a colour for each one.
- Turn on the legend and write a title that says what the shape shows, not just what the data is.
- Publish an interactive embed, or export SVG, PNG or JPG.
The step-by-step stream graph guide walks through the settings in detail. If you want the exact-value version of the same data, creating a stacked area chart covers it.
Frequently asked questions
What is a stream graph used for?
A stream graph shows how many categories change over time when the overall pattern matters more than exact values. It suits topics such as music genres, search interest, energy mix or sector employment.
What is the difference between a stream graph and a stacked area chart?
A stacked area chart stacks every band on a flat zero baseline, so values can be read exactly. A stream graph stacks the bands around a moving centre line, which gives a smoother shape for many categories but makes exact reading impossible without a tooltip.
Is a stream graph the same as a streamgraph or ThemeRiver?
Yes, for practical purposes. "Streamgraph" is the one-word spelling from Byron and Wattenberg's 2008 paper, and ThemeRiver is the earlier name for the same idea.
Can a stream graph show negative values?
No. The bands are stacked on top of each other with no zero line, so a negative value has nowhere to go. Use line charts or a diverging chart instead.
How many categories does a stream graph need?
Roughly ten to thirty is the sweet spot. With fewer than about eight, a stacked area chart gives the same view and is easier to read.


