Line chartThe shape of a trend.
Points in time joined by a line. Up, down, flat, a peak or a dip: the shape tells the story before the numbers do.
- Answers How did it change?
- Your data a number per moment
- Moments 5 to hundreds
- Lines 1 to about 5
- Excel and Power BI built in
What is a line chart?
A line chart is a chart that places a value at each moment in time and joins the points with a line. The slope of the line is the change: up is growth, down is a fall, flat is no change. Time runs left to right, so the eye reads the trend like a sentence.
A website counts its visitors each month. Twelve numbers in a table hide the story; a line through them shows a steady climb, a dip in July and the best month in December.
Why use a line chart?
Because it shows the shape of a change over time better than any other chart.
- The trend is the picture. Rising, falling, flat, a peak: the shape says it before any number.
- Many moments fit. Twelve months or a thousand days: a line stays readable where bars would crowd.
- Several lines compare. Two or three series on one chart show which grows faster.
- Built in everywhere. Excel, Power BI, Google Sheets and Python draw one from a date column.
How does a line chart work?
Three steps turn a list of moments into a line.
- Step 1 of 3Time along the bottomThe months go left to right, the visitors up the side.
- Last year
- This year
- Step 2 of 3A point per moment, joinedEach month gets a point at its value; a line joins them in order.
- Last year
- This year
- Step 3 of 3A line per seriesA second series gets its own line and colour, on the same scale.
- Last year
- This year
The line only joins moments that follow each other. Without an order, as with countries or products, use bars.
What are the parts of a line chart?
Five parts, and each one has a job.
- Linejoins the points in time order; its slope is the change
- Pointthe value at one moment
- Value axisthe scale up the side
- Time axisthe moments, left to right
- Reference linea goal or an average to compare with
How do you read a line chart?
Three looks, in this order.
- Check the scale and the keyRead what is counted and which line is which.
- Last year
- This year
- Follow the overall shapeThis year climbs from 42 to 78, almost doubling.
- Last year
- This year
- Compare the linesThe gap between the lines grows: this year pulls ahead from September.
- Last year
- This year
What kinds of line chart are there?
The same numbers, drawn three ways.
- Kind 1LinePoints joined by straight lines: the classic.
- Kind 2AreaThe space below the line filled: an amount over time.
- Kind 3StepThe value holds, then jumps: for prices and rates that change at moments.
When should you use a line chart?
When values change over time and the trend matters.
- the x-axis is time or another order
- there are many moments
- the shape of the trend matters
- you compare 1 to about 5 series
- the categories have no order (a bar chart)
- there are only two moments (a slope chart)
- the amounts per period matter more than the trend (a column chart)
- there are many series (small multiples)
Line chart or column chart?
A line for the trend, columns for the amounts in each period.
A column chart makes each month a separate amount, good for comparing a few periods. A line joins them into one movement, which shows the trend, and it stays clean with many more periods.
How do you make a line chart?
Built in everywhere: Excel, Power BI, Google Sheets and Python.
In Excel, select the dates and values and choose Insert > Line chart. In Power BI, it is the line chart visual, with the date on the x-axis. The steps, with the settings that matter, are in line charts in Power BI. In Python, matplotlib draws one with plt.plot.
What goes wrong with line charts?
The most common mistake, and its fix: too many lines.
- North
- South
- East
- West
- Centre
- Harbour
Six lines cross and tangle, and the key is a colour puzzle. Six small panels on one scale show each shop's shape at once.
| Mistake | Why it hurts | Fix |
|---|---|---|
| Too many lines | A tangle of colours | Small multiples, or one line lit and the rest grey |
| Lines for categories with no order | The slope means nothing | A bar chart |
| An axis squeezed or stretched | A small change looks like a cliff, or a big one flat | Let the line fill about two thirds of the height |
| Uneven gaps in time drawn evenly | The slope lies where months are missing | Place points by their date |
| A key far from the lines | The eye jumps back and forth | Name each line at its end |
Every chart for “How did it change?”
- 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.
- 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.