Compare and rank

Ranked bar chart

Sorts category bars by value to make their ranking explicit.

  • Chart
  • Ranking
  • Comparison

What it answers

Who ranks first and by how much?

Shape
Bars ordered by length
What it shows
Leaders, laggards and gaps.

Example

The question

Who closed the most deals this quarter, and by how much?

Deals closed by salesperson, Q3 2025

Deals closed by salesperson, Q3 2025Ranked from first to last. Ana 31; Chloe 27; Ben 24; Fia 21; Dev 18; Eli 12. Ana leads Chloe by 4.010203040Deals closed1. Ana312. Chloe273. Ben244. Fia215. Dev186. Eli12
Deals closed by salesperson, Q3 2025Ranked from first to last. Ana 31; Chloe 27; Ben 24; Fia 21; Dev 18; Eli 12. Ana leads Chloe by 4.010203040Deals closed1. Ana312. Chloe273. Ben244. Fia215. Dev186. Eli12
Ranked from first to last. Ana 31; Chloe 27; Ben 24; Fia 21; Dev 18; Eli 12. Ana leads Chloe by 4.

Illustrative data. It belongs to no company.

When to use it

Use it when

Emphasising an ordered leaderboard.

Avoid it when

When a natural order, such as age bands, is more meaningful.

How to read it

Read sorted bars from the largest or smallest end.

Note

A sorted bar-chart variant.

The data you need

Layout
Long table
Fields
Category: text; Value: number
One row is
One category and its measured or aggregated value. What is the grain?
Rules
Choose an aggregation for repeated categories. Keep units consistent.
Optional
Optional Series or label. Wide alternative: one category column plus one value column per series.
Preparation
Aggregate category values and sort ascending or descending, unless a natural order is more informative.
Units
Use the measured variable's stated unit consistently. No denominator is implied unless the value is a rate or proportion.
Example of the input layout: Long tableA long table: one row per observation, few columns. New data adds rows.CategoryValueAABBC
A long table: one row per observation, few columns. New data adds rows.

Worked example

Data A30, B45, C25. Sort B, A, C. B exceeds second-place A by 15.

CategoryValue
A30
B45
C25