Comparing groups in a chart
Bars, dots, dumbbells, slopes and small multiples, and how ordering and baselines change what people see.
You will be able to
- Choose between bars and dots
- Sort categories so the comparison is easy
- Show change between two points with a slope or dumbbell chart
Read first
Bars need a zero
ReadA bar encodes value by length, so it has to start at zero. Dots encode by position, so they don't. If your values sit far from zero, such as blood pressures between 118 and 126, use dots with a focused axis.
View data
| country | life_expectancy | sex |
|---|---|---|
| Japan | 83.300 | Male |
| Japan | 85.300 | Female |
| Japan | 82.600 | Male |
| Japan | 89.100 | Female |
| Japan | 81.200 | Male |
| Japan | 89.100 | Female |
| Japan | 83.500 | Male |
| Japan | 85.700 | Female |
| Japan | 79.900 | Male |
| Japan | 87.400 | Female |
| Japan | 83.800 | Male |
| Japan | 89.500 | Female |
| Japan | 80.600 | Male |
| Japan | 86.500 | Female |
| Japan | 84.200 | Male |
| Japan | 87.600 | Female |
| Japan | 82.100 | Male |
| Japan | 87.600 | Female |
| Japan | 82.800 | Male |
| Japan | 88.500 | Female |
| Japan | 83.800 | Male |
| Japan | 87.400 | Female |
| Japan | 83.400 | Male |
| Japan | 86.300 | Female |
| Japan | 81.900 | Male |
| Japan | 86.700 | Female |
| Japan | 80.800 | Male |
| Japan | 87.100 | Female |
| Japan | 81.500 | Male |
| Japan | 86.700 | Female |
| Japan | 81.100 | Male |
| Japan | 86 | Female |
| Japan | 83.900 | Male |
| Japan | 87.900 | Female |
| Japan | 81.300 | Male |
| Japan | 87.200 | Female |
| Japan | 81.300 | Male |
| Japan | 85.200 | Female |
| Japan | 85.100 | Male |
| Japan | 85.500 | Female |
| Spain | 78 | Male |
| Spain | 86.200 | Female |
| Spain | 80.800 | Male |
| Spain | 86.400 | Female |
| Spain | 81.100 | Male |
| Spain | 85.200 | Female |
| Spain | 82 | Male |
| Spain | 85.500 | Female |
| Spain | 80.700 | Male |
| Spain | 86.700 | Female |
| Spain | 83 | Male |
| Spain | 86.700 | Female |
| Spain | 77.900 | Male |
| Spain | 85.800 | Female |
| Spain | 82.300 | Male |
| Spain | 85.700 | Female |
| Spain | 81.100 | Male |
| Spain | 89.200 | Female |
| Spain | 81.800 | Male |
| Spain | 87.400 | Female |
First 60 of 480 rows.
Which sort?
PredictPredict first
A bar chart has 15 unordered product categories. Which order lets readers find the largest few and compare neighbors fastest?
Reveal
The answer: By value
By value. Keep natural orders, such as days, sizes or age bands, in their own order. Everything else reads faster sorted.
Two points in time
ExploreFor a change between two moments, the change itself is the story. A dumbbell chart shows the gap per group. A slope chart shows who rose, who fell and who crossed.
Open both in Charts, and use Reshuffle demo a few times to see which question each one answers fastest.
View data
| department | engagement | year |
|---|---|---|
| Engineering | 81 | 2025 |
| Engineering | 52 | 2025 |
| Engineering | 75 | 2025 |
| Engineering | 86 | 2025 |
| Engineering | 62 | 2025 |
| Engineering | 86 | 2025 |
| Engineering | 83 | 2025 |
| Engineering | 56 | 2025 |
| Engineering | 50 | 2025 |
| Engineering | 71 | 2025 |
| Engineering | 85 | 2025 |
| Engineering | 90 | 2025 |
| Engineering | 56 | 2025 |
| Engineering | 62 | 2025 |
| Engineering | 90 | 2025 |
| Engineering | 72 | 2025 |
| Engineering | 70 | 2025 |
| Engineering | 72 | 2025 |
| Engineering | 77 | 2025 |
| Engineering | 81 | 2025 |
| Engineering | 85 | 2025 |
| Engineering | 70 | 2025 |
| Engineering | 81 | 2025 |
| Engineering | 60 | 2025 |
| Engineering | 68 | 2025 |
| Engineering | 65 | 2025 |
| Engineering | 58 | 2025 |
| Engineering | 68 | 2025 |
| Engineering | 64 | 2025 |
| Engineering | 64 | 2025 |
| Engineering | 61 | 2025 |
| Engineering | 58 | 2025 |
| Engineering | 86 | 2025 |
| Engineering | 76 | 2025 |
| Engineering | 63 | 2025 |
| Engineering | 69 | 2025 |
| Engineering | 63 | 2025 |
| Engineering | 51 | 2025 |
| Engineering | 98 | 2025 |
| Engineering | 54 | 2025 |
| Engineering | 47 | 2026 |
| Engineering | 74 | 2026 |
| Engineering | 72 | 2026 |
| Engineering | 75 | 2026 |
| Engineering | 75 | 2026 |
| Engineering | 65 | 2026 |
| Engineering | 83 | 2026 |
| Engineering | 67 | 2026 |
| Engineering | 71 | 2026 |
| Engineering | 78 | 2026 |
| Engineering | 92 | 2026 |
| Engineering | 78 | 2026 |
| Engineering | 45 | 2026 |
| Engineering | 70 | 2026 |
| Engineering | 86 | 2026 |
| Engineering | 69 | 2026 |
| Engineering | 75 | 2026 |
| Engineering | 100 | 2026 |
| Engineering | 82 | 2026 |
| Engineering | 85 | 2026 |
First 60 of 800 rows.
View data
| brand | units_k | year |
|---|---|---|
| Northwind | 40.400 | 2024 |
| Northwind | 29.400 | 2024 |
| Northwind | 37.600 | 2024 |
| Northwind | 42.600 | 2024 |
| Northwind | 32.700 | 2024 |
| Northwind | 42.700 | 2024 |
| Northwind | 41.100 | 2024 |
| Northwind | 30.600 | 2024 |
| Northwind | 28.700 | 2024 |
| Northwind | 36.100 | 2024 |
| Northwind | 42.200 | 2024 |
| Northwind | 44.500 | 2024 |
| Northwind | 28.900 | 2026 |
| Northwind | 31 | 2026 |
| Northwind | 41.600 | 2026 |
| Northwind | 34.500 | 2026 |
| Northwind | 33.500 | 2026 |
| Northwind | 34.500 | 2026 |
| Northwind | 36.100 | 2026 |
| Northwind | 37.900 | 2026 |
| Northwind | 39.600 | 2026 |
| Northwind | 33.800 | 2026 |
| Northwind | 38.100 | 2026 |
| Northwind | 30.300 | 2026 |
| Contoso | 31.800 | 2024 |
| Contoso | 30.500 | 2024 |
| Contoso | 28.500 | 2024 |
| Contoso | 31.800 | 2024 |
| Contoso | 30.400 | 2024 |
| Contoso | 30.400 | 2024 |
| Contoso | 29.200 | 2024 |
| Contoso | 28.300 | 2024 |
| Contoso | 38.600 | 2024 |
| Contoso | 34.500 | 2024 |
| Contoso | 29.900 | 2024 |
| Contoso | 32 | 2024 |
| Contoso | 35.300 | 2026 |
| Contoso | 31 | 2026 |
| Contoso | 51.800 | 2026 |
| Contoso | 32.100 | 2026 |
| Contoso | 28.400 | 2026 |
| Contoso | 38.200 | 2026 |
| Contoso | 37.600 | 2026 |
| Contoso | 38.900 | 2026 |
| Contoso | 38.600 | 2026 |
| Contoso | 34.600 | 2026 |
| Contoso | 42.200 | 2026 |
| Contoso | 35.600 | 2026 |
| Fabrikam | 24.800 | 2024 |
| Fabrikam | 26.800 | 2024 |
| Fabrikam | 31.200 | 2024 |
| Fabrikam | 26.700 | 2024 |
| Fabrikam | 18.600 | 2024 |
| Fabrikam | 24.500 | 2024 |
| Fabrikam | 29.100 | 2024 |
| Fabrikam | 24.200 | 2024 |
| Fabrikam | 25.900 | 2024 |
| Fabrikam | 34.600 | 2024 |
| Fabrikam | 27.800 | 2024 |
| Fabrikam | 28.800 | 2024 |
First 60 of 192 rows.
When there are too many groups
ReadTwelve lines on one chart are a tangle. Small multiples give each group its own small panel on shared axes, so you can scan for shape.
View data
| month | revenue_k | product_line |
|---|---|---|
| 1,640,995,200,000 | 124.30 | Analytics |
| 1,640,995,200,000 | 200.80 | Compute |
| 1,640,995,200,000 | 86.500 | Storage |
| 1,640,995,200,000 | 42 | Security |
| 1,640,995,200,000 | 60.900 | Networking |
| 1,640,995,200,000 | 57.700 | Support |
| 1,643,673,600,000 | 127.60 | Analytics |
| 1,643,673,600,000 | 205.30 | Compute |
| 1,643,673,600,000 | 82.200 | Storage |
| 1,643,673,600,000 | 41.700 | Security |
| 1,643,673,600,000 | 65.300 | Networking |
| 1,643,673,600,000 | 57.800 | Support |
| 1,646,092,800,000 | 121.30 | Analytics |
| 1,646,092,800,000 | 211.80 | Compute |
| 1,646,092,800,000 | 93.100 | Storage |
| 1,646,092,800,000 | 43.300 | Security |
| 1,646,092,800,000 | 63 | Networking |
| 1,646,092,800,000 | 54.800 | Support |
| 1,648,771,200,000 | 131.10 | Analytics |
| 1,648,771,200,000 | 225.40 | Compute |
| 1,648,771,200,000 | 93.500 | Storage |
| 1,648,771,200,000 | 44.500 | Security |
| 1,648,771,200,000 | 65.400 | Networking |
| 1,648,771,200,000 | 52.600 | Support |
| 1,651,363,200,000 | 131 | Analytics |
| 1,651,363,200,000 | 218.30 | Compute |
| 1,651,363,200,000 | 88.500 | Storage |
| 1,651,363,200,000 | 45.800 | Security |
| 1,651,363,200,000 | 62.800 | Networking |
| 1,651,363,200,000 | 52.700 | Support |
| 1,654,041,600,000 | 131.10 | Analytics |
| 1,654,041,600,000 | 216.60 | Compute |
| 1,654,041,600,000 | 97.100 | Storage |
| 1,654,041,600,000 | 48.300 | Security |
| 1,654,041,600,000 | 63 | Networking |
| 1,654,041,600,000 | 53 | Support |
| 1,656,633,600,000 | 134.70 | Analytics |
| 1,656,633,600,000 | 214.90 | Compute |
| 1,656,633,600,000 | 101.60 | Storage |
| 1,656,633,600,000 | 47 | Security |
| 1,656,633,600,000 | 59.800 | Networking |
| 1,656,633,600,000 | 52.600 | Support |
| 1,659,312,000,000 | 139.80 | Analytics |
| 1,659,312,000,000 | 230.40 | Compute |
| 1,659,312,000,000 | 96.300 | Storage |
| 1,659,312,000,000 | 49.500 | Security |
| 1,659,312,000,000 | 66.600 | Networking |
| 1,659,312,000,000 | 51.300 | Support |
| 1,661,990,400,000 | 142.60 | Analytics |
| 1,661,990,400,000 | 235.10 | Compute |
| 1,661,990,400,000 | 102.70 | Storage |
| 1,661,990,400,000 | 53.100 | Security |
| 1,661,990,400,000 | 60.300 | Networking |
| 1,661,990,400,000 | 51.300 | Support |
| 1,664,582,400,000 | 163.60 | Analytics |
| 1,664,582,400,000 | 243.60 | Compute |
| 1,664,582,400,000 | 102.80 | Storage |
| 1,664,582,400,000 | 64.300 | Security |
| 1,664,582,400,000 | 71.200 | Networking |
| 1,664,582,400,000 | 54 | Support |
First 60 of 288 rows.
Shared axes matter: the comparison between panels depends on them.
Show the uncertainty
In the appA chart of group means should say how precise they are. Point-range in Charts draws each mean with its interval, and you can run it with Use my data.
View data
| reaction_ms | condition |
|---|---|
| 357 | Baseline |
| 256 | Baseline |
| 335 | Baseline |
| 374 | Baseline |
| 290 | Baseline |
| 375 | Baseline |
| 363 | Baseline |
| 269 | Baseline |
| 249 | Baseline |
| 322 | Baseline |
| 371 | Baseline |
| 388 | Baseline |
| 271 | Baseline |
| 293 | Baseline |
| 386 | Baseline |
| 327 | Baseline |
| 318 | Baseline |
| 327 | Baseline |
| 341 | Baseline |
| 357 | Baseline |
| 371 | Baseline |
| 320 | Baseline |
| 358 | Baseline |
| 286 | Baseline |
| 313 | Baseline |
| 301 | Baseline |
| 279 | Baseline |
| 313 | Baseline |
| 299 | Baseline |
| 299 | Baseline |
| 287 | Baseline |
| 276 | Baseline |
| 375 | Baseline |
| 339 | Baseline |
| 294 | Baseline |
| 316 | Baseline |
| 293 | Baseline |
| 252 | Baseline |
| 414 | Baseline |
| 263 | Baseline |
| 224 | Baseline |
| 317 | Baseline |
| 312 | Baseline |
| 324 | Baseline |
| 321 | Baseline |
| 287 | Baseline |
| 350 | Baseline |
| 296 | Baseline |
| 289 | Caffeine |
| 313 | Caffeine |
| 361 | Caffeine |
| 312 | Caffeine |
| 198 | Caffeine |
| 284 | Caffeine |
| 339 | Caffeine |
| 281 | Caffeine |
| 302 | Caffeine |
| 394 | Caffeine |
| 324 | Caffeine |
| 336 | Caffeine |
First 60 of 209 rows.
A later lesson goes into what error bars do and don't tell you.
Check your understanding
CheckpointCheck yourself
Temperatures across cities range from 17 to 23 °C. What's the honest way to show differences?
Show the answer
Answer: a
Truncating bars exaggerates differences, because length no longer matches value. Dots have no length to distort, so a focused axis is fine.
Check yourself
You want to show which schools rose and fell in rank between 2022 and 2024. Which chart fits best?
Show the answer
Answer: a
Lines between the two years show direction and crossings directly.
Recap
Recap- Bars start at zero; dots can use a focused axis.
- Sort by value unless the categories have a natural order.
- With many groups, try small multiples on shared axes.