Dot and dumbbell chart
Compare items by position in a dot chart: plain dots, dumbbells for ranges with the gap derived, or lollipops for single values.
- React
import { DotChart } from 'boardplot/react/dot';- Reference
- Data, options and sizing
- Use for
- Gap between two values · Many items on one scale · Before and after per item
Regional margin against peer range
Dot plot of EBIT margin for five regions, from 18% in East to 28% in North, each with a peer min-to-max range bar and some with a peer midpoint.
dot-range-benchmark
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "dot",
"data": {
"categories": [
{
"id": "north",
"label": "North"
},
{
"id": "west",
"label": "West"
},
{
"id": "central",
"label": "Central"
},
{
"id": "south",
"label": "South"
},
{
"id": "east",
"label": "East"
}
],
"series": [
{
"id": "margin",
"label": "Our margin",
"values": [
{
"number": 28,
"range": {
"low": 24,
"high": 32,
"mid": 27
}
},
{
"number": 25,
"range": {
"low": 21,
"high": 30
}
},
{
"number": 23,
"range": {
"low": 20,
"high": 27,
"mid": 24
}
},
{
"number": 20,
"range": {
"low": 17,
"high": 24
}
},
{
"number": 18,
"range": {
"low": 15,
"high": 22,
"mid": 19
}
}
]
}
]
},
"options": {
"title": "North leads while every region remains within its peer range",
"subtitle": {
"company": "Brevinth Consumer",
"measure": "EBIT margin with peer benchmark range",
"period": "FY26"
},
"unit": "%",
"valueAxis": {
"show": true
},
"axisTitles": {
"primary": "Margin, %"
},
"source": "Illustrative peer benchmark set",
"sort": {
"categories": "desc"
},
"range": {
"label": "Peer range, min to max",
"values": true,
"midLabel": "Peer midpoint"
},
"size": {
"width": 1000
}
}
}Plant lead times against the average
Dot ranking of order-to-delivery lead time for seven plants, from 5.3 days at Ridge to 12.4 at North, with a dashed average line at 8.1.
average-marker-lead-times
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "dot",
"data": {
"categories": [
{
"id": "north",
"label": "Plant North"
},
{
"id": "east",
"label": "Plant East"
},
{
"id": "harbour",
"label": "Plant Harbour"
},
{
"id": "valley",
"label": "Plant Valley"
},
{
"id": "south",
"label": "Plant South"
},
{
"id": "west",
"label": "Plant West"
},
{
"id": "ridge",
"label": "Plant Ridge"
}
],
"series": [
{
"id": "lead",
"label": "Lead time",
"values": [
12.4,
10.1,
9.2,
7.1,
6.4,
5.9,
5.3
]
}
]
},
"options": {
"title": "Three plants take longer than the network average",
"subtitle": {
"measure": "Order-to-delivery lead time",
"period": "Q2 2026"
},
"unit": "days",
"source": "Illustrative plant data",
"averageMarker": true,
"size": {
"width": 1000
}
}
}Open audit findings by plant
Lollipop chart of open audit findings for six plants, from 23 in Gdansk to 4 in Turin; the top two plants hold 40 of 71.
audit-findings-lollipop
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from the report frame to the width of the site frame.
{
"type": "dot",
"data": {
"categories": [
{
"id": "gdansk",
"label": "Gdańsk"
},
{
"id": "lyon",
"label": "Lyon"
},
{
"id": "porto",
"label": "Porto"
},
{
"id": "brno",
"label": "Brno"
},
{
"id": "leeds",
"label": "Leeds"
},
{
"id": "turin",
"label": "Turin"
}
],
"series": [
{
"id": "findings",
"label": "Audit findings",
"values": [
23,
17,
12,
9,
6,
4
]
}
]
},
"options": {
"variant": "lollipop",
"title": "Two plants account for over half of all audit findings",
"subtitle": {
"company": "Company A",
"measure": "Open audit findings",
"period": "FY26 internal audit cycle",
"scenarios": [
"AC"
]
},
"unit": "findings",
"source": "Group internal audit tracker, June 2026",
"sort": {
"categories": "desc"
},
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as dot.json and run the command.
{
"type": "dot",
"data": {
"categories": [{ "id": "north", "label": "North" }, { "id": "south", "label": "South" }],
"series": [{ "id": "revenue", "label": "Revenue", "values": [120, 90] }]
},
"options": { "unit": "$k", "title": "North revenue exceeds South by $30k", "source": "Illustrative data" }
}npx boardplot render dot.json --out dot.svg