Bar chart vs histogram: which one to use
A bar chart compares separate categories with gaps between the bars. A histogram groups one continuous number into equal-width bins whose bars touch. Ask whether the axis shows names or ranges of a number.
Updated · 3 min read
The short answer
A bar chart compares separate categories. A histogram shows how one continuous number is spread out. If the things along your axis are names, you want a bar chart. If they are ranges of a number, you want a histogram.
Bar charts: comparing things that have names
Departments, products, countries, teams: each gets its own bar. The bars have gaps between them because the categories do not sit on a shared scale. That also means you can reorder them. Sorting by size, largest first, makes the ranking obvious. Sort alphabetically only if people need to look things up.
Support closed the most tickets, so it comes first
Tickets closed by team, last month
Support is the largest at 412, 1.5 times Billing (268). Security is the smallest at 57.
Source: Sample data
| Team | Tickets |
|---|---|
| Support | 412 |
| Billing | 268 |
| Onboarding | 231 |
| Sales | 144 |
| Security | 57 |
Histograms: the shape of one number
A histogram shows how a single numeric value is distributed across a group: ages, test scores, delivery times. The values are sorted into bins of equal width along a number line. The height of each bar is the count of values in that bin, or the share if you prefer percentages. The bars touch because the bins are consecutive ranges of a continuous scale, and the order is fixed because numbers have an order. Both JMP and Storytelling with Data describe it this way.
Most parcels arrived in two to four days (histogram drawn as a bar chart)
Number of parcels by delivery time, days (1-day bins)
3-4 is the largest at 171, ahead of 2-3 (152). 8-9 is the smallest at 5.
Source: Sample data
| Delivery time (days) | Parcels |
|---|---|
| 0-1 | 18 |
| 1-2 | 64 |
| 2-3 | 152 |
| 3-4 | 171 |
| 4-5 | 96 |
| 5-6 | 41 |
| 6-7 | 17 |
| 7-8 | 9 |
| 8-9 | 5 |
This chart is a histogram drawn as a bar chart: the parcels were counted into one-day bins first, then each count became a bar. Chartsmade has no dedicated histogram chart type, so this is how you make one there.
Why bin width changes the picture
The same data looks different with different bins. JMP's guidance is that many narrow bins show detail but make the overall shape harder to see, while a few wide bins hide the centre, spread and shape. Try a few widths and keep the one that shows the pattern without inventing one. Keep every bin the same width. If one bar covers 0 to 10 and the next covers 10 to 50, the taller bar may just cover more ground.
The quick test: names or ranges?
- Names (regions, products, job titles): bar chart.
- Ranges of a number (0 to 10, 10 to 20, 20 to 30): histogram.
The common mistake is the first one reversed. Someone has ages or prices, draws a bar chart with a gap between every bar, and the gaps imply the groups are unrelated when they are neighbouring slices of one scale.
Bar chart vs column chart
A column chart is a bar chart with vertical bars; a bar chart, strictly, has horizontal ones. The logic is identical, so the choice is practical. Horizontal bars suit long category labels, which sit on the left in one line instead of being tilted or cut off. Vertical columns suit short labels such as months. Upright bars do not make a bar chart a histogram.
Start bars at zero
Bar length is read as quantity, so bar charts and histograms should both start at zero on the value axis. Datawrapper does not let you start a column or bar chart's axis above zero, because truncated axes mislead readers.
Making either one
If you are unsure which chart fits your data, which chart should I use? walks through the choice. For a bar chart, paste your table into the bar chart maker or the editor at /new, which needs no account, and download the result as a live embed, PNG or SVG. For a histogram, count your values into bins in a spreadsheet first. Related: the best chart for comparison.
Questions
- What is the main difference between a bar chart and a histogram?
- A bar chart compares categories, so its bars are separate and can be reordered. A histogram shows the distribution of one continuous number in equal-width bins, so its bars touch and stay in numeric order.
- Is a column chart the same as a bar chart?
- Yes, in practice. A column chart is a bar chart with vertical bars. The choice is mostly about label length: horizontal bars leave more room for long category names.
- Can I make a histogram without a histogram chart type?
- Yes. Count your values into equal-width bins in a spreadsheet, then draw the counts as a bar chart, one bar per bin. Chartsmade works this way because it has no dedicated histogram type.
- Should a histogram start at zero?
- Yes. The bars show counts or shares, so the value axis should start at zero, as with any bar chart.