Variance chart
Show differences from prior year, plan or forecast in a variance chart: difference columns, percentage pins, or good and bad caps on the actuals.
- React
import { VarianceChart } from 'boardplot/react/variance';- Reference
- Data, options and sizing
- Use for
- Actual against plan or PY · Variance in value and percent · Budget deviation by cost center
- Not for
- Relative variance against a zero or negative reference.
Regional revenue growth against prior year
Variance columns of revenue growth versus prior year for five regions: DACH plus 11, UK and Ireland plus 6, Nordics plus 3, France minus 8 and Iberia minus 3.
dpy-absolute-regions
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": "variance",
"data": {
"categories": [
{
"id": "dach",
"label": "DACH"
},
{
"id": "france",
"label": "France"
},
{
"id": "uki",
"label": "UK & Ireland"
},
{
"id": "nordics",
"label": "Nordics"
},
{
"id": "iberia",
"label": "Iberia"
}
],
"series": [
{
"id": "rev",
"label": "Revenue",
"values": [
128,
96,
84,
52,
41
]
},
{
"id": "py",
"label": "Prior year",
"role": "reference",
"scenario": "PY",
"values": [
117,
104,
78,
49,
44
]
}
]
},
"options": {
"variant": "absolute",
"variance": {
"of": "rev",
"vs": "py"
},
"title": "DACH and UK gains outweigh the French decline",
"subtitle": {
"company": "Brevinth Retail",
"measure": "Revenue growth vs PY",
"period": "FY25",
"scenarios": [
"AC",
"PY"
]
},
"unit": "$m",
"source": "Brevinth management accounts, FY25 close",
"size": {
"width": 1000
}
}
}Order intake against plan by month
Variance pins of monthly order intake versus plan in percent for H1 2026: three months above plan (up to plus 3.0%) and three below (down to minus 4.4% in May).
dpl-relative-pins
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": "variance",
"data": {
"categories": [
{
"id": "jan",
"label": "Jan"
},
{
"id": "feb",
"label": "Feb"
},
{
"id": "mar",
"label": "Mar"
},
{
"id": "apr",
"label": "Apr"
},
{
"id": "may",
"label": "May"
},
{
"id": "jun",
"label": "Jun"
}
],
"series": [
{
"id": "orders",
"label": "Order intake",
"values": [
412,
388,
431,
405,
392,
441
]
},
{
"id": "pl",
"label": "Plan",
"role": "reference",
"scenario": "PL",
"values": [
400,
400,
420,
420,
410,
430
]
}
]
},
"options": {
"variant": "relative",
"variance": {
"of": "orders",
"vs": "pl"
},
"title": "Order intake beats plan in three of six months",
"subtitle": {
"company": "Vantage Systems",
"measure": "Order intake vs plan",
"period": "H1 2026",
"scenarios": [
"AC",
"PL"
]
},
"source": "Group controlling, plan v2",
"size": {
"width": 1000
}
}
}Growing gap above plan with CAGR
Variance columns of orders above plan for FY21 to FY23 (plus 10, plus 12, plus 14) with a plus 20% a year growth arrow.
annual-surplus
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.subtitle.
{
"type": "variance",
"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"
}
],
"series": [
{
"id": "orders",
"label": "Orders",
"values": [
110,
112,
114.4
]
},
{
"id": "plan",
"label": "Plan",
"role": "reference",
"scenario": "PL",
"values": [
100,
100,
100
]
}
]
},
"options": {
"variant": "absolute",
"variance": {
"of": "orders",
"vs": "plan"
},
"title": "Over-plan volume grows 20% a year",
"size": {
"width": 900,
"height": 400
},
"subtitle": {
"measure": "Extra orders above plan, 10 to 14",
"period": "FY21 to FY23",
"scenarios": [
"AC",
"PL"
]
},
"source": "Illustrative orders and plans",
"annotations": [
{
"id": "growth",
"kind": "cagr",
"from": "fy21",
"to": "fy23"
}
]
}
}Running month hatched against plan
Variance columns of actuals against plan: January 120 (plus 20), February 90 (minus 10) and a hatched March at 60 (plus 20 to date).
partial-period
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": "variance",
"data": {
"categories": [
{
"id": "jan",
"label": "Jan"
},
{
"id": "feb",
"label": "Feb"
},
{
"id": "mar",
"label": "Mar",
"partial": true
}
],
"series": [
{
"id": "actual",
"label": "Actual",
"values": [
120,
90,
60
]
},
{
"id": "plan",
"label": "Plan",
"role": "reference",
"scenario": "PL",
"values": [
100,
100,
40
]
}
]
},
"options": {
"variant": "integrated",
"variance": {
"of": "actual",
"vs": "plan"
},
"title": "March is still running",
"source": "Illustrative data; March plan covers the same days as actual",
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as variance.json and run the command.
{
"type": "variance",
"data": {
"categories": [{ "id": "north", "label": "North" }, { "id": "south", "label": "South" }],
"series": [
{ "id": "revenue", "label": "Revenue", "values": [120, 90], "scenario": "AC" },
{ "id": "plan", "label": "Plan", "values": [100, 100], "role": "reference", "scenario": "PL" }
]
},
"options": {
"variant": "absolute",
"variance": { "of": "revenue", "vs": "plan" },
"unit": "$k",
"title": "North exceeds plan by $20k; South misses by $10k",
"source": "Illustrative data",
"footnotes": ["AC = actual; PL = plan."]
}
}npx boardplot render variance.json --out variance.svg