Bar chart
Rank items or show a mix in a bar chart, grouped or stacked. It also draws a sensitivity tornado and a football field (valuation ranges by method).
- React
import { BarChart } from 'boardplot/react/bar';- Reference
- Data, options and sizing
- Use for
- Ranking items · Tornado or football-field ranges · Values with long category names
- Only two brands clear the $30 margin target we set
- Equity NPV sensitivity to the main DCF drivers
- Cloud doubles in three years while license declines
- Assistant Suite already drives half of APAC revenue
- Core + Growth is highest in the west
- Four markets grow on the prior year while France and Sweden shrink
Brand margin ranking against average and target
Bars of unit margin for seven brands with an average of 14.9 and a target of $30; only Brand A at 42 and Brand B at 34 clear the target, and our brand is highlighted at 28.
margin-by-brand
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": "bar",
"data": {
"categories": [
{
"id": "brand-a",
"label": "Brand A"
},
{
"id": "brand-b",
"label": "Brand B"
},
{
"id": "our-brand",
"label": "Our brand"
},
{
"id": "brand-c",
"label": "Brand C"
},
{
"id": "brand-d",
"label": "Brand D"
},
{
"id": "brand-e",
"label": "Brand E"
},
{
"id": "brand-f",
"label": "Brand F"
}
],
"series": [
{
"id": "margin",
"label": "Margin per unit",
"values": [
42,
34,
28,
19,
8,
-12,
-15
]
}
]
},
"options": {
"averageMarker": true,
"title": "Only two brands clear the $30 margin target we set",
"subtitle": {
"company": "Alpenrand Consumer Goods",
"measure": "Margin per unit",
"period": "FY25",
"scenarios": [
"AC"
]
},
"unit": "$",
"source": "Brand P&L, management accounts May 2026",
"sort": {
"categories": "desc"
},
"highlight": "our-brand",
"size": {
"width": 1000
}
},
"annotations": [
{
"kind": "valueLine",
"value": 30,
"label": "Target 30"
}
]
}Sensitivity tornado for a valuation
Tornado of equity value around a base case of $412m for seven drivers; the discount rate swings it from −30 to 640.
dcf-npv-sensitivity
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": "bar",
"data": {
"categories": [
{
"id": "wacc",
"label": "WACC\n7.5% to 10.5%"
},
{
"id": "revenue-growth",
"label": "Revenue growth\n2% to 6% p.a."
},
{
"id": "ebitda-margin",
"label": "EBITDA margin\n16% to 22%"
},
{
"id": "terminal-growth",
"label": "Terminal growth\n0.5% to 2.0%"
},
{
"id": "capex",
"label": "Capex intensity\n4% to 7% of sales"
},
{
"id": "fx",
"label": "EUR/USD\n1.02 to 1.18"
},
{
"id": "working-capital",
"label": "Working capital\n38 to 52 days"
}
],
"series": [
{
"id": "low",
"label": "Driver at low input",
"values": [
640,
250,
300,
350,
470,
385,
430
]
},
{
"id": "high",
"label": "Driver at high input",
"values": [
-30,
560,
520,
465,
355,
450,
395
]
}
]
},
"options": {
"variant": "tornado",
"baseValue": 412,
"tornado": {
"low": "low",
"high": "high"
},
"title": "Equity NPV sensitivity to the main DCF drivers",
"subtitle": {
"company": "Brevinth Systems",
"measure": "Equity NPV",
"period": "Base case July 2026"
},
"unit": "$m",
"source": "Illustrative DCF sensitivity, one driver varied at a time",
"legend": "bottom",
"size": {
"width": 1000
}
}
}Two revenue lines with growth rate and gap
Grouped bars FY21 to FY24: cloud doubles from $100m to $200m at +26% a year while license falls to 97, a gap of 103.
grouped-cloud-cagr
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": "bar",
"data": {
"categories": [
{
"id": "fy21",
"label": "FY21",
"date": "2021-12-31"
},
{
"id": "fy22",
"label": "FY22",
"date": "2022-12-31"
},
{
"id": "fy23",
"label": "FY23",
"date": "2023-12-31"
},
{
"id": "fy24",
"label": "FY24",
"date": "2024-12-31"
}
],
"series": [
{
"id": "cloud",
"label": "Cloud",
"colorRole": "highlight",
"values": [
100,
130,
160,
200
]
},
{
"id": "license",
"label": "License",
"values": [
124,
118,
109,
97
]
}
]
},
"options": {
"variant": "grouped",
"title": "Cloud doubles in three years while license declines",
"subtitle": {
"measure": "Revenue",
"period": "FY21–FY24"
},
"unit": "$m",
"source": "Illustrative accounts",
"size": {
"width": 1000
}
},
"annotations": [
{
"kind": "cagr",
"from": {
"categoryId": "fy21",
"seriesId": "cloud"
},
"to": {
"categoryId": "fy24",
"seriesId": "cloud"
}
},
{
"kind": "diff",
"mode": "absolute",
"from": {
"categoryId": "fy24",
"seriesId": "license"
},
"to": {
"categoryId": "fy24",
"seriesId": "cloud"
}
}
]
}Product mix by region in percent
100% stacked bars by region: the newest product line is 50% of APAC revenue, 32% in the Americas and 23% in EMEA.
ai-products-by-region
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": "bar",
"data": {
"categories": [
{
"id": "emea",
"label": "EMEA"
},
{
"id": "americas",
"label": "Americas"
},
{
"id": "apac",
"label": "APAC"
}
],
"series": [
{
"id": "assistants",
"label": "Assistants",
"values": [
44,
38,
26
]
},
{
"id": "platform",
"label": "Platform APIs",
"values": [
33,
30,
24
]
},
{
"id": "assistant-suite",
"label": "Assistant Suite",
"values": [
23,
32,
50
],
"colorRole": "highlight"
}
]
},
"options": {
"variant": "stacked100",
"title": "Assistant Suite already drives half of APAC revenue",
"subtitle": {
"company": "Software Company A",
"measure": "Revenue share by product line",
"period": "FY25",
"scenarios": [
"AC"
]
},
"source": "Illustrative billing data, FY25 close",
"labels": {
"segment": true,
"percentIndicator": false
},
"size": {
"width": 1000
}
}
}Revenue by segment with a subtotal tick
Stacked bars of revenue by segment for four regions, with a tick where Core plus Growth ends; West has the largest Core plus Growth at 68 of $77m.
stacked-net-line-horizontal
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":720} to the width of the site frame.
{
"type": "bar",
"data": {
"categories": [
{
"id": "north",
"label": "North"
},
{
"id": "south",
"label": "South"
},
{
"id": "east",
"label": "East"
},
{
"id": "west",
"label": "West"
}
],
"series": [
{
"id": "core",
"label": "Core",
"values": [
42,
38,
46,
40
]
},
{
"id": "growth",
"label": "Growth",
"values": [
18,
24,
16,
28
]
},
{
"id": "other",
"label": "Other",
"values": [
10,
8,
14,
9
]
}
]
},
"options": {
"variant": "stacked",
"netLine": {
"seriesId": "growth"
},
"grandTotalLabels": true,
"labels": {
"segment": true
},
"title": "Core + Growth is highest in the west",
"subtitle": {
"measure": "Revenue by segment"
},
"unit": "$m",
"size": {
"width": 1000
},
"legend": "bottom",
"source": "Illustrative regional revenue model; the tick marks where Core + Growth ends, the figure after each bar is its total"
}
}Change by market, colored by sign
Option shown: Sign colors, gains in green, losses in red.
Bars of revenue change against prior year by market: four markets grow, France falls by $6m and Sweden by $11m.
option-sign-color
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": "bar",
"data": {
"categories": [
{
"id": "de",
"label": "Germany"
},
{
"id": "uk",
"label": "United Kingdom"
},
{
"id": "fr",
"label": "France"
},
{
"id": "nl",
"label": "Netherlands"
},
{
"id": "se",
"label": "Sweden"
},
{
"id": "it",
"label": "Italy"
}
],
"series": [
{
"id": "delta",
"label": "Revenue vs prior year",
"values": [
14,
9,
-6,
4,
-11,
2
]
}
]
},
"options": {
"signColor": true,
"sort": {
"categories": "desc"
},
"title": "Four markets grow on the prior year while France and Sweden shrink",
"subtitle": {
"measure": "Revenue change vs PY",
"period": "FY26"
},
"unit": "$m",
"source": "Illustrative management accounts",
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as bar.json and run the command.
{
"type": "bar",
"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 bar.json --out bar.svg