Skip to content
Graph Craft

Line Chart

FacebookX
Example: Monthly usersApache ECharts

Variant: Standard

Made-up data, for demonstration only

Variants

6 types · click one to see it in the frame above
Difference from standard
The recommended type; use it as a starting point
Use when
See trends in continuous values over time

Line Chart is a chart that draws a line through values in time order. Use it to see the trend, the variation and the change in a value over a period, such as monthly users.

How to read a Line Chart

  • The horizontal axis is time. This example covers 12 months.
  • The vertical axis is the value. The unit is thousands of people. Monthly users rise from 120 in January to 181 in December, an increase of about half (51%).
  • The slope of the line is the speed of change. A steep rise is fast growth. A flat line is almost no change.
  • Where the line turns down is a month that fell from the month before. There are two: April (131 to 129) and August (152 to 149).

You can read the overall trend quickly, but each month's value is less exact to read off the axis. If you need the numbers, see the "Key value labels" variant.

When to use it

  • Continuous data over time, such as monthly or daily data, with evenly spaced points.
  • You want to see the trend and the variation more than the value of each period.
  • Comparing several series over time, with no more than 4 lines. See Multi-series Line.
  • You want to add context, such as a target line, last year's average or a note on a key event.

When not to use it

  • There are 5 data points or fewer. Use a Column Chart, or if you use a line, mark every value with a point.
  • There are only two time periods. Use a Slope Chart or a Dumbbell Chart, if that does not hide the trend in between.
  • There are so many lines that it gets messy. With more than 4 lines, use several small charts, Small Multiples, or highlight one line and make the rest grey.
  • Two series in different units share dual axes. The relationship they suggest depends on the scales you choose. See Combo Chart.
  • The data are for categories that are not continuous. Do not draw a line between them, because a line says that the value changes continuously between points.

Common mistakes

1. Truncating the axis until the trend looks steeper than it is

A line chart can truncate the vertical axis, unlike a bar chart. But research that tested readers found that the more the axis is cut, the faster readers think the trend is changing. The safe default is to start at 0. Cut it when zero has no meaning (such as body temperature) or when the values swing in a narrow range (such as the gold price). If you cut it, say so clearly with an axis break symbol and a note.

2. Drawing a line across a gap in the data

Leave a gap in the line where data are missing. Do not join the two sides, even with a dashed line, because a line says that we know the values in between. Explain the reason for the gap in a note.

3. Using a smooth line for data that change in steps

A smooth curve looks nice and sometimes reflects continuous change better than a straight line, but it still is not the real value between points. If the value changes in steps and holds between them, such as an interest rate, use a Step Chart. Try the "Smooth line" variant.

4. Using two vertical axes without need

Try the "Dual Y axes" variant. The point where the two lines cross depends on the scales you chose and does not show a real relationship. Split it into two charts, with the name and unit of each axis clearly shown.

5. An aspect ratio that makes the line steep or flat

A tall, narrow chart makes the trend look steep. A wide, flat chart makes it look level. Choose a proportion that does not make it look extreme or flat.

Compared with similar charts

ChartHow it differsChoose it when
Line ChartA continuous line over timeTrend and variation
Column ChartSeparate bars per periodThere are few data points and you want to stress each period's value
Area ChartA line with the area under itYou want to stress the total amount
Step ChartA stair-step lineThe value changes in steps and then holds
SparklinesA small line with no axesSeeing trends for many items in a small space

History and development

The line chart for statistical data began with William Playfair, a Scottish engineer and political economist, in The Commercial and Political Atlas (London, 1786), which contains as many as 43 line charts showing England's imports and exports with different countries over time. Jonathan Sachs writes that most of those before Playfair used a horizontal and a vertical axis to draw mathematical functions, while Playfair pioneered the use of graphs for empirical historical data.

William Playfair's line chart of exports and imports of Denmark and Norway over time
Time series of exports and imports of Denmark and Norway, from William Playfair's The Commercial and Political Atlas · Image: Wikimedia Commons public domain

Frequently asked questions

Who invented the line chart?

By the evidence we can check, William Playfair, in The Commercial and Political Atlas in 1786.

Must the axis start at 0?

It is not as strict as for a bar chart. The safe default is to start at 0, and to cut it only when zero has no meaning, or when including zero hides an important change.

How many lines should there be?

No more than 4. If there are more, highlight one line or split them into small charts.

Should I put points on the line?

You do not need to, unless there are few data points, the points are unevenly spaced, or the data are an amount per period. See the "Markers on every value" variant.

Should I use line labels or a colour key?

Labels at the end of the lines are better, because readers do not have to match colours to names, and they work for readers with colour vision deficiency.

References

  • Data visualisation: charts · Line charts · UK Government Analysis Function · analysisfunction.civilservice.gov.ukUsed to confirm: guidance on choosing and designing charts for official statistics
  • Service manual: Data over time, Line chart · Office for National Statistics (UK) · service-manual.ons.gov.ukUsed to confirm: guidance on designing and choosing line charts
  • Scales in line charts · European Commission · data.europa.eu · data.europa.euUsed to confirm: guidance on designing and choosing scales in line charts
  • Line interpolations · European Commission · data.europa.eu · data.europa.euUsed to confirm: guidance on designing and choosing line interpolations
  • Visual Vocabulary (chart-doctor) · Financial Times · github.comUsed to confirm: classifying charts by the question they answer
  • William Playfair Founds Statistical Graphics, and Invents the Line Chart and Bar Chart · Jeremy Norman · History of Information · www.historyofinformation.comUsed to confirm: Playfair's history and his invention of the line chart and the bar chart
  • 1786/1801: William Playfair, Statistical Graphics, and the Meaning of an Event · Jonathan Sachs · BRANCH · branchcollective.orgUsed to confirm: the context of Playfair and the birth of statistical graphs

Last updated 28 Nov 2026