Bullet chart
Bullet chart for one actual value per row against a target and shaded ranges.
Use a bullet chart to compare an actual value with its target for several categories on one scale.
South is the only region above its sales target
Sales per region; the line marks each region's target
This chart cannot be displayed here: it needs JavaScript and WebGL.
bar = actual, line across it = target, shaded bands = ranges
The same chart in each style
Source
```chart
type: bullet
title: South is the only region above its sales target
subtitle: Sales per region; the line marks each region's target
data:
inline:
- {region: North, sales: 72, goal: 85}
- {region: South, sales: 91, goal: 80}
- {region: East, sales: 55, goal: 70}
- {region: West, sales: 64, goal: 60}
encoding: {x: region, y: sales, target: goal}
axes:
y: {label: Sales}
style:
ranges: [60, 80, 100]
```
Fields that matter
type: bulletwithencoding.xfor the row name andencoding.yfor the actual valueencoding.targetnames the field drawn as the line across the barstyle.rangestakes up to three ascending numbers and shades the bands between them; anything else is rejectedaxes.ysetslabel,format,unit,minandmaxstyle.ratiosets the width to height ratio, andstyle.facet_scale: freegives each facet its own scale
Interactions
- Hover or focus a bar to read the actual value, the target and the ranges.
- Open the Table view, Download PNG or CSV, or Expand the chart.