What the chart shows
A line graph has an ordered quantity along the horizontal axis, usually time in days, months or years, and what is measured along the vertical axis. Each measurement is a point, and the points are joined by straight lines in the order of the horizontal axis. UNECE’s guide to presenting statistics calls the line chart an effective tool for showing trends over time and the most appropriate chart for time series.
The data behind the figure
| Point | Height (cm) |
|---|---|
| 1 | 3 |
| 2 | 6 |
| 3 | 10 |
| 4 | 15 |
| 5 | 18 |
| 6 | 20 |
Each segment shows the change from one measurement to the next. How large the change is shows as a difference in height, and how fast it is as a slope: the steeper the segment, the larger the change per unit of time. Several series can be drawn in one chart, one line for each country for example, and are then compared against the same axes.
How to read it
- A value. Go up from the time on the horizontal axis to the point, and from there across to the vertical axis. In week 4 the seedling was 15 cm.
- A change. The difference between two values: from week 1 to week 6 the seedling grew from 3 cm to 20 cm, that is 17 cm.
- The largest rise. The steepest segment, as long as the measurements are evenly spaced. Here it lies between week 3 and week 4, when the seedling grew 5 cm.
- Between two measurements. The line between two points is not measured. It is an estimate that assumes the change was even. What the seedling measured on a Wednesday between two measuring days, the chart does not say for certain.
When it fits and when it does not
A line graph fits when the horizontal axis has an order and the values between the points have a meaning, such as time, age or temperature, and when the development is what the reader should see. It handles many points and several series in one chart better than bars do.
It does not fit when:
- The categories have no order. Between apple and banana there is nothing; a line between them shows a change that does not exist. That calls for a bar graph.
- Each value is a total for a period and the periods are what is compared, such as rainfall per month. A bar per month shows the amount for that month. A line between two monthly totals shows nothing that has been measured.
- The data are pairs of two quantities with no order that belongs to the question, such as the height and weight of a number of people. That is a scatter plot.
Common mistakes
- Uneven time steps drawn evenly spaced. If 2000, 2010, 2020 and 2022 stand equally far apart on the axis, the change over the last two years looks as fast as a change over ten. The horizontal axis has to be a number line, spaced by time.
- A shortened vertical axis that is not marked. On a line graph the value is read from the height of the point against the axis, and an axis that does not start at zero can be reasonable when the changes are what should show. But it magnifies them. UNECE’s guide shows the same series against two scales, the shortened one making small swings look dramatic, and advises marking the axis with a symbol when the scale does not start at zero.
- A line between categories with no order, as above.
- The line drawn on past the last point. Extending the line is guessing how the development goes on. The seedling grew 5 cm between week 3 and 4, but only 2 cm between week 5 and 6.
Going deeper: line graphs and graphs of functions
A graph of a function and a line graph look alike but say different things. A function has a value for every x in its domain, and the graph between two points is as true as the points. A line graph of measurements has only its points; the line between them is an interpolation, an estimate, and it assumes an even change between the times of measurement.
That is the reason the measured points are marked on a line graph: the reader should see what is measured and what is drawn. When the measurements are close together, such as the temperature every hour, the difference is small. When they are far apart, such as one measurement a year, a lot can have happened between the points.
The line graph for time series is old. According to Ian Spence, who has written on the origins of statistical charts, William Playfair was in 1786 the first to advocate and popularise line graphs for time series in statistics.