SparklineA trend the size of a word.
A tiny line with no axes or labels, set beside a number or in a table row. The trend at a glance, in the space of a word.
- Answers How did it change?
- Your data a short series per row
- Points about 7 to 52
- Rows any number
- Excel and Power BI built in
What is a sparkline?
A sparkline is a tiny line chart with no axes, gridlines or labels, small enough to sit next to a number or inside a table row. It shows the shape of the recent trend, not exact values, so a column of sparklines tells at a glance which rows are rising and which are falling.
A shop manager looks at five products every Monday. Each row has the product, a sparkline of the last eight weeks, this week's sales and the change. Without reading a single number, the falling product jumps out.
Why use a sparkline?
Because it adds the trend to a number without taking any extra room.
- Context for a number. "158" says little; "158, rising for eight weeks" says a lot.
- Tiny. It fits in a table cell, a KPI card or a line of text.
- Many at once. A column of sparklines compares the trend of every row.
- Built in. Excel, Power BI and Google Sheets draw them inside cells.
How does a sparkline work?
Four steps shrink a line chart to the size of a word.
- Step 1 of 4A row per itemEach product gets a row with its name and its latest number.
- Step 2 of 4A tiny lineThe last weeks as a line, with no axes: only the shape is kept.
- Step 3 of 4Its own scaleEach line fills its own height, so even a small change shows.
- Step 4 of 4Colour by directionUp in green, down in red: the falling row stands out.
Each sparkline uses its own scale, so compare shapes between rows, not heights.
What are the parts of a sparkline?
Five parts, and each one has a job.
- Labelwhich item the row is about
- Linethe recent trend, with no axes
- End dotmarks the latest value
- Numberthe latest value, exact
- Changehow much it moved since the first point
How do you read a sparkline?
Three looks, in this order.
- Read the shapeRising, falling, flat or jumpy: Tea is flat, Gift cards climb fast.
- Read the numberThe number beside it is exact: Mugs sold 28 this week.
- Mind the scaleEach line has its own scale: Tea's small wiggles are only a few units.
What kinds of sparkline are there?
The same small lines, marked three ways.
- Kind 1Plain lineOne colour, the shape and the end dot.
- Kind 2Coloured by directionGreen when it rose, red when it fell.
- Kind 3Low point markedA dot on the lowest week, for where the trouble was.
When should you use a sparkline?
When a number needs its recent trend beside it, in very little space.
- a table or KPI card needs a trend
- there are many rows
- the shape matters more than exact values
- space is tight
- exact values over time matter (a line chart with axes)
- rows must be compared on one scale (small multiples)
- there is only one series and room for a full chart (a line chart)
Sparkline or line chart?
A sparkline for context, a line chart for the detail.
- Coffee
- Tea
- Mugs
On one line chart, all products share one scale: Coffee's line is high, Mugs' low, and the axes give exact numbers. Sparklines give each row its own scale and place: you see every shape, but not how they compare in size.
How do you make a sparkline?
Built into Excel, Power BI and Google Sheets.
In Excel, select a cell and choose Insert > Sparklines > Line, with a row of values as the data. In Power BI, tables and matrices can add a sparkline to a value. The steps are in sparklines in Power BI. In Google Sheets, the SPARKLINE function draws one in a cell.
What goes wrong with sparklines?
The most common mistake, and its fix: comparing heights across rows.
- each sparkline fills its own height
- a line that rose from 80 to 84 looks as steep as one from 20 to 70
- the size of the change is lost
- read the direction from the line
- read the size from the number and the change beside it
| Mistake | Why it hurts | Fix |
|---|---|---|
| Comparing heights across rows | Each line has its own scale | Compare shapes; write the change |
| No number beside it | The trend floats without a value | The latest value next to the line |
| Too many points | The line turns into noise | About 7 to 52 points |
| Too long a period | Old moves hide the recent trend | The period the reader acts on |
| Colour with no meaning | Readers look for a meaning | One colour, or colour by direction |
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.
- 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.
- AreasStacked area chartLayers stacked over time, for a total and the parts that build it.
- 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.