Comparison
Bar Chart
Compare quantities across categories using vertical bars positioned on a common baseline.
Revenue by Region
Aggregated from raw transactions
View data (14 rows)
| Region | Revenue sum | Revenue |
|---|---|---|
| East | 16000 | |
| East | 13500 | |
| East | 15000 | |
| North | 12000 | |
| North | 9500 | |
| North | 14000 | |
| South | 8000 | |
| South | 11000 | |
| South | 9000 | |
| Central | 10500 | |
| Central | 8500 | |
| West | 6000 | |
| West | 7500 | |
| West | 4500 |
Use a bar chart when…
- Comparing 3-15 discrete categories that share a unit of measure
- Showing rankings
- Highlighting absolute differences in magnitude
Avoid when…
- Continuous data (use histogram)
- Trends over many time points (use line)
Data it needs
| Property | Value |
|---|---|
| Min Rows | 2 |
| Min Columns | 2 |
| Column Types | stringnumber |
Visual anatomy
Marks
rectangle
Channels
position-xlength-ycolor-hue
Axes
x-categoricaly-quantitative
Guiding principles
Consider instead
Common mistakes
Truncating the y-axis
Using 3D effects
Too many categories (>15)
History
Invented by William Playfair in 1801 in his Commercial and Political Atlas.
Accessibility notes
Avoid relying solely on color to differentiate adjacent bars — use direct value labels alongside the legend. Maintain WCAG AA contrast against the page background. The accompanying data table makes the values screen-reader friendly.
Related reading
Got data? Let's see what works.
Drop your CSV. You'll get a Bar Chart plus four alternatives - ranked by which one actually fits your data best.