What the chart shows
A bar graph has one bar for each category, and the length of the bar is the category’s count or value, read against a value axis. The categories stand along the other axis. UNECE’s guide to presenting statistics describes the bar chart as the simplest chart to draw and read, used to compare frequencies or values for different categories or groups. The bars are drawn equally wide: the length carries the value, not the width.
The data behind the figure
| Category | Count |
|---|---|
| On foot | 9 |
| Bike | 7 |
| Bus | 5 |
| Car | 3 |
The bars can stand up or lie down. A horizontal bar graph is the same chart turned a quarter turn, and it leaves room for long category names. With two bars for each category, for example one for boys and one for girls, two groups are compared in one chart.
Vertical line charts: when the axis carries numbers
Sometimes what stands along the horizontal axis is not categories but numbers: number of siblings, number of cats, goals in a match. Each value then gets a thin vertical line whose height is how many gave that value. The GCSE mathematics specification of AQA, an English exam board, names this chart: bar charts, pie charts and pictograms are for categorical data, and vertical line charts for ungrouped discrete numerical data.
The data behind the figure
| Category | Count |
|---|---|
| 0 | 4 |
| 1 | 10 |
| 2 | 8 |
| 3 | 0 |
| 4 | 3 |
The difference from a bar graph is the axis. In a vertical line chart the horizontal axis is a number line: the values have an order and a spacing, and a value nobody gave still has its place, with height zero. The categories of a bar graph can stand in any order.
How to read it
- A value. Follow the top of the bar across to the value axis. If the top falls between two marks on the axis, estimate where.
- Largest and smallest. The longest and the shortest bar. It is the lengths that are compared, so the axis must start at zero (see below).
- The difference. The difference between two values is the difference between two bar lengths. In the chart above, 9 pupils walk and 3 come by car, a difference of 6.
- The total. All the bars together: here 9 + 7 + 5 + 3 = 24, the number of pupils asked, because each gave one answer.
When it fits and when it does not
A bar graph fits when counts or values are compared across categories or groups, which is the use UNECE’s guide gives it. It also fits when each person could give several answers: each bar then shows the share of the people asked who chose that answer, and the shares may add up to more than 100%. That is a case where a pie chart does not work (see pie charts).
It fits less well when:
- The data are many measurements of one quantity, such as the heights of 30 pupils. A bar per pupil shows no distribution. The measurements are grouped into classes instead and drawn as a histogram.
- What is shown is a development over many points in time. A line graph is, according to UNECE, the most appropriate chart for time series.
- Two quantities are measured for each person. The relationship between them is shown in a scatter plot.
Common mistakes
- A value axis that does not start at zero. Because the length is the value, the proportions come out wrong. With the axis starting at 80, the bars for 85 and 90 are only 5 and 10 units long, and 90 looks twice as large as 85. UNECE advises starting at zero, and marking the axis with a symbol when part of the scale has been left out.
- Bars of different widths. A wider bar looks larger although it has the same height.
- Three-dimensional bars. The depth makes it hard to see where a bar ends against the axis.
- A vertical line chart with gaps. A value nobody gave, such as three siblings, stays on the axis with height zero. Leaving it out makes the distribution look more even than it is.
- A histogram drawn as a bar graph. Classes of a measurement have an order and sit edge to edge on a number line. Gaps between the bars, or classes out of order, turn it into a different chart.
Going deeper: bar graphs and histograms
A histogram looks like a bar graph, and the two are often confused. The difference lies in what stands on the horizontal axis.
| Bar graph | Histogram | |
|---|---|---|
| Horizontal axis | categories | a number line, divided into classes |
| Order | free, if the categories have no order | given by the numbers |
| Gaps | between the bars | none: the classes sit edge to edge |
| The count is shown by | the bar’s length | the bar’s area, and its height when the classes are equally wide |
The last row matters most. When the classes of a histogram have different widths, the area shows the count, and the height is the count per unit on the axis. The article on histograms explains it.
A vertical line chart sits between the two: its horizontal axis is a number line as in a histogram, but each line stands for a single value, as a bar stands for one category. The vertical line chart therefore suits a few possible whole numbers, and the histogram suits measurements that can take many different values.