Bar Charts

GUIDE

What a bar chart shows, when to use one, the zero-baseline rule, the grouped and stacked variants, and the traps to avoid.

The bar chart is the workhorse of data visualization. It answers one question better than almost any other chart: how do these separate categories compare? Each bar's length stands for a value, and because the human eye judges length quickly and accurately, a bar chart lets a reader rank items and spot the biggest and smallest at a glance. If you are unsure which chart to reach for, a bar chart is rarely the wrong answer.

A B C D E
Each bar's length encodes a value; the eye compares lengths almost instantly.

How a bar chart works

A bar chart plots categories along one axis and values along the other. Each category gets a rectangle whose length is proportional to its value, and every bar shares the same baseline so the lengths are directly comparable. That shared baseline is the whole point: when all bars start from the same line, their relative lengths translate straight into relative values. A bar that is twice as long represents twice the quantity.

This is why bar charts beat most alternatives for comparison. People estimate the length of a line far more accurately than they estimate the angle of a pie slice or the area of a bubble. A pie chart shows composition — parts of a single whole — but the moment your real question is "which is bigger, and by how much?", a bar chart gives a sharper answer.

Vertical vs. horizontal bars

Bars can run either way, and the orientation has a proper name in each direction. Vertical bars (sometimes called a column chart) rise from a horizontal baseline. Horizontal bars extend rightward from a vertical baseline. They show the same data; the choice is about readability.

North South East West
Horizontal bars give long labels room to breathe and suit ranked lists.

When to use a bar chart

Bars beat pies for comparison

If your takeaway is "X is bigger than Y" or "here is the ranking from most to least," use a bar chart. Reach for a pie chart only when the message is genuinely "X is this fraction of one whole" and you have just a few parts.

The zero-baseline rule

This is the single most important thing to get right. The value axis of a bar chart must start at zero. Because a bar communicates its value through length, the length has to be measured from zero for the comparison to be honest. If you start the axis at, say, 80 instead of 0, a bar at 100 looks five times taller than a bar at 90 — even though the real difference is only about 11%. The chart quietly exaggerates every gap.

Watch out for

A truncated axis is the most common way bar charts mislead, whether by accident or on purpose. Always begin the numeric axis at zero. If the differences you care about are too small to see from zero, that is a sign the differences may not be meaningful — or that a line chart or dot plot, which do not rely on length from a baseline, is the better tool.

Grouped and stacked bars

Two variants extend the plain bar chart to handle a second dimension of data.

A grouped (clustered) bar chart places related bars side by side within each category. If you are comparing two periods across several regions, each region gets a small cluster of bars — one per period — so you can compare both within a region and across regions. Grouped bars stay readable with two or three series per cluster; beyond that they get crowded.

A stacked bar chart sets the sub-values on top of one another inside a single bar, so each bar shows both a total and how that total breaks down into parts. Stacked bars are excellent for comparing totals while still hinting at composition. Their weakness is that only the bottom segment shares a common baseline, so comparing the middle or top segments across bars is harder — the eye cannot line them up.

A stacked bar shows the total and its parts; only the bottom segment is easy to compare across bars.

Sorting matters

The order of the bars is part of the design. If the categories have no natural sequence — products, regions, options — sort the bars by value, largest to smallest. A sorted bar chart turns into an instant ranking: the reader sees the leader, the laggard, and the shape of the falloff without reading a single number. Leave bars in alphabetical or arbitrary order only when the category order itself is meaningful, such as time (Jan, Feb, Mar) or an ordered scale (small, medium, large).

How to read a bar chart

First, check where the value axis starts — if it does not start at zero, treat every comparison with suspicion. Then scan the bars for the longest and shortest to anchor the range. Compare bars by length: a bar twice as long means roughly twice the value, provided the baseline is zero. With grouped or stacked bars, read the legend first so you know what each colour means, then compare within a group before comparing across groups.

Common mistakes to avoid

Watch out for

Truncated axes that don't start at zero — the cardinal sin. 3-D bars, which make it impossible to tell where the top of each bar actually lands. Too many bars, which become a forest no one can scan; group or filter them down. And unsorted categories when a ranking would have told the story instantly.

Make a bar chart

Ready to build one? The bar chart maker lets you enter labels and values (or paste a CSV), switch between vertical and horizontal, choose grouped or stacked, sort the bars, recolour them, and export a PNG or SVG — free, no signup, no watermark.