Comparison and ranking

Compare magnitudes across categories, or rank them.

Reach for these charts when the question is “which is bigger?”: one value per category, or one value per category within groups. Bars remain the most accurate encoding for magnitude, and dot plots do the same job with less ink when you only show a point estimate. Sort categories by value rather than alphabetically, flip to horizontal bars when labels are long, and label bars directly instead of forcing readers through a legend. Every example ships its full source: click View source to copy it.

Back to top