Bar chart: when to use one and how to read it right
A bar chart compares a number across categories with one bar per category, its length proportional to the value. The categories can be lines, shifts, defect types, suppliers or months; the value is usually a count, a total or a rate. Because people compare lengths along a common baseline very accurately, a bar chart is the most reliable way to show how categories differ.
When to use it
- You compare counts or totals across categories: scrap by line, complaints by product, downtime by cause.
- You show a rate per category, such as defects per thousand parts, as long as every rate uses the same base.
- You want to show parts of a whole across many categories, where a pie chart would have too many slices.
- For causes of a problem ranked by size, use its specialized form, the Pareto chart.
Do not use a bar chart for the distribution of a continuous measurement; that is a histogram. And for means of groups, an interval plot or individual value plot shows the uncertainty that a bar hides.
How it works
- List the categories and the value for each: a count of rows (as in a tally), or a sum, mean or rate of another column.
- Draw one bar per category on a common baseline at zero, with gaps between bars to show the categories are separate.
- Order the bars sensibly: in their natural order when they have one (days, months, shifts), otherwise by size.
- For two category variables, draw clustered bars (side by side) to compare within each group, or stacked bars to show totals and their make-up.
The baseline must be zero. The eye reads a bar's length as its value, so a bar chart whose axis starts above zero misstates every ratio.
Example
A plant has five assembly lines. The October scrap report lists the scrapped units per line:
| Line | Scrapped units | Units produced | Scrap per 1,000 produced |
|---|---|---|---|
| L1 | 198 | 41,000 | 4.83 |
| L2 | 212 | 44,500 | 4.76 |
| L3 | 240 | 58,200 | 4.12 |
| L4 | 205 | 39,800 | 5.15 |
| L5 | 225 | 46,100 | 4.88 |
On counts, L3 looks worst with 240 scrapped units. But L3 also built the most: 58,200 units, 42% more than L1. Dividing by output gives the scrap rate, which tells a different story:
L3 has the lowest rate (4.12 per thousand) and L4 the highest (5.15), against a plant rate of 1,080 / 229,600 = 4.70 per thousand. Which chart is right depends on the question. To reduce the total cost of scrap, counts matter, and L3 contributes the most. To find which line runs worst, compare rates, and L4 stands out.
Now suppose someone redraws the count chart with the vertical axis starting at 190 to "zoom in". L3's bar becomes 240 − 190 = 50 units tall and L1's becomes 198 − 190 = 8 units tall, so L3 looks 6.25 times worse than L1. The real ratio is 240 / 198 = 1.21. The differences are modest, and a zero-based chart shows them that way.
How to read the results
- Compare lengths against the common baseline. Check that the axis starts at zero before reading ratios.
- Ask what the bars count. Units, cost, events and rates can rank the same categories differently.
- Check the base of each rate. A rate only compares fairly when each category's denominator is stated and similar in meaning (per unit produced, per hour, per lot).
- Look at the spread of the bars against chance. Small differences between counts, such as 198 versus 212, can be noise. A p chart or a 2-proportions test tells you whether a rate difference is larger than random variation.
Common mistakes
- Truncating the axis. A baseline above zero exaggerates differences, as the example shows. If small differences matter, plot the differences themselves, or use dots instead of bars.
- Comparing counts when the exposure differs. Lines, shifts or months with more output will have more defects.
- 3D bars and shadows. Perspective makes bars hard to read against the axis and adds no information.
- Bars for means of small samples. A bar of a mean hides the spread and the number of values. Show the data or an interval.
- Random category order. Sort categories without a natural order by size, so the ranking is visible.
Frequently asked questions
What is the difference between a bar chart and a histogram?
A bar chart compares separate categories, so bars have gaps and can be sorted. A histogram shows how one continuous measurement is distributed over adjacent intervals, so its bars touch and follow the scale.
When should I use a Pareto chart instead?
When the categories are causes or defect types and you want to focus on the biggest few. A Pareto chart sorts the bars from largest to smallest and adds a cumulative percentage line.
Should bar charts always start at zero?
Yes. A bar's length is read as its value, so a nonzero baseline distorts every comparison. If you need to show small differences, plot the differences or use a dot plot with a narrow axis.
Should I use vertical or horizontal bars?
Either. Horizontal bars leave room for long category names, such as defect descriptions; vertical bars suit time categories such as months.