Dumbbell chart
Dumbbell chart for the change between two measurements per category.
Use a dumbbell chart to compare a start and an end value for each category, where the direction of change matters.
Three of four teams scored higher after training
Score per team; hollow dot before, filled dot after
This chart cannot be displayed here: it needs JavaScript and WebGL.
hollow dot = start, filled dot = end; the change is the end minus the start
The same chart in each style
Source
```chart
type: dumbbell
title: Three of four teams scored higher after training
subtitle: Score per team; hollow dot before, filled dot after
data:
inline:
- {team: Alpha, before: 62, after: 78}
- {team: Beta, before: 55, after: 51}
- {team: Gamma, before: 70, after: 88}
- {team: Delta, before: 48, after: 66}
encoding: {x: team, lower: before, upper: after}
axes:
y: {label: Score}
```
Fields that matter
type: dumbbellwithencoding.xfor the categoryencoding.loweris the start value (hollow dot) andencoding.upperthe end value (filled dot); the change is signed, so the order mattersencoding.colorsplits each category into groupsaxes.ysetslabel,format,unit,minandmax; the value axis does not need zerostyle.ratiosets the width to height ratio, andstyle.facet_scale: freegives each facet its own scale
Interactions
- Hover or focus a dumbbell to read its start, end and signed change.
- Click a legend entry to toggle a series when the chart has several.
- Open the Table view, Download PNG or CSV, or Expand the chart.