Bar table
A bar table puts bars beside number columns, one panel per measure, so a reader sees the exact values and the split together. Each panel has its own scale.
- React
import { BarTableChart } from 'boardplot/react/bartable';- Reference
- Data, options and sizing
- Use for
- One measure per row as a stacked bar beside number columns: one panel · The same split in two units side by side, $bn and % of EBITDA: two panels · Impact ranges by sector with a Total row · Share of a total over 2 to 4 periods, such as category revenue share by year: cascade
- Not for
- Values of different sign: bars grow from zero. Comparing bars of different units by length: each panel has its own scale.
Revenue concentration by market over time
Bar table of revenue by market for 2021 ($78.8bn) and 2025 ($92.9bn) with shares, a 69% to 67% top-five bracket and a CAGR column; total CAGR is 4.2%.
cascade-two-periods
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":900} to the width of the site frame.
{
"type": "bartable",
"data": {
"categories": [
{
"id": "nor",
"label": "Northland",
"group": "low"
},
{
"id": "eas",
"label": "Eastvale",
"group": "high"
},
{
"id": "sou",
"label": "Southmere",
"group": "high"
},
{
"id": "wes",
"label": "Westbrook",
"group": "low"
},
{
"id": "lak",
"label": "Lakeshore",
"group": "mid"
},
{
"id": "hig",
"label": "Highmoor",
"group": "low"
},
{
"id": "riv",
"label": "Riverton",
"group": "high"
},
{
"id": "rest",
"label": "Rest of world",
"residual": true
},
{
"id": "pin",
"label": "Pinecrest",
"group": "mid"
},
{
"id": "sto",
"label": "Stonebay",
"group": "low"
},
{
"id": "fai",
"label": "Fairhaven",
"group": "low"
},
{
"id": "cluster",
"label": "Other coastal markets",
"residual": true
}
],
"series": [
{
"id": "rev",
"label": "Revenue"
}
],
"rowGroups": {
"title": "Gross margin of market, %",
"groups": [
{
"id": "low",
"label": "Low (0–10)",
"colorRole": "series-2"
},
{
"id": "mid",
"label": "Middle (11–20)",
"colorRole": "series-8"
},
{
"id": "high",
"label": "High (>20)",
"colorRole": "series-1"
}
]
},
"panels": [
{
"id": "y21",
"label": "2021",
"unit": "$ billion",
"format": "1.0",
"values": {
"rev": [
24.1,
13.2,
6.8,
5.9,
4.4,
4.9,
2.2,
7.9,
1.4,
1.6,
0.8,
5.6
]
}
},
{
"id": "y25",
"label": "2025",
"unit": "$ billion",
"format": "1.0",
"values": {
"rev": [
25,
16.4,
8.1,
6.6,
5.7,
4.2,
2.9,
11.3,
2.1,
2,
1.4,
7.2
]
}
}
]
},
"options": {
"variant": "cascade",
"cascade": {
"growth": {
"measure": "cagr"
}
},
"combinedShare": {
"rows": [
"nor",
"eas",
"sou",
"wes",
"lak"
]
},
"rounding": "sum-consistent",
"title": "The top five markets hold about 70% of revenue, a little less than four years ago",
"subtitle": {
"measure": "Revenue by market"
},
"source": "Illustrative data",
"size": {
"width": 1000
}
}
}Category share change, 2022 to 2025
Bar table of revenue by category for 2022 to 2025 with shares and a share-change column in points; Beauty gains 5.3 points and Apparel loses 7.8.
cascade-four-years
JSON spec
This spec includes the theme shown and the options you selected.
Changed from the fixture: options.size from {"width":1060,"height":380} to the width of the site frame.
{
"type": "bartable",
"data": {
"categories": [
{
"id": "app",
"label": "Apparel"
},
{
"id": "foo",
"label": "Footwear"
},
{
"id": "acc",
"label": "Accessories"
},
{
"id": "hom",
"label": "Home"
},
{
"id": "bea",
"label": "Beauty"
},
{
"id": "oth",
"label": "Other categories",
"residual": true
}
],
"series": [
{
"id": "rev",
"label": "Revenue"
}
],
"panels": [
{
"id": "y22",
"label": "2022",
"values": {
"rev": [
182,
96,
41,
30,
18,
23
]
}
},
{
"id": "y23",
"label": "2023",
"values": {
"rev": [
188,
108,
47,
33,
26,
24
]
}
},
{
"id": "y24",
"label": "2024",
"values": {
"rev": [
190,
121,
52,
35,
37,
26
]
}
},
{
"id": "y25",
"label": "2025",
"values": {
"rev": [
193,
133,
58,
36,
49,
27
]
}
}
]
},
"options": {
"variant": "cascade",
"cascade": {
"growth": {
"measure": "share-change"
}
},
"sharedScale": true,
"combinedShare": {
"rows": [
"app",
"foo"
]
},
"title": "Beauty gains share every year while apparel gives it up",
"subtitle": {
"measure": "Revenue by product category, $m"
},
"source": "Illustrative data",
"size": {
"width": 1000
}
}
}Bookings split by region
Stacked bar table of FY 2026 bookings for five regions, from 100 in North to 38 in Central, split into new contracts and renewals.
single-panel
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": "bartable",
"data": {
"categories": [
{
"id": "north",
"label": "North"
},
{
"id": "south",
"label": "South"
},
{
"id": "east",
"label": "East"
},
{
"id": "west",
"label": "West"
},
{
"id": "central",
"label": "Central"
}
],
"series": [
{
"id": "new",
"label": "New contracts"
},
{
"id": "renewal",
"label": "Renewals"
}
],
"panels": [
{
"id": "bookings",
"label": "Bookings",
"unit": "$m",
"values": {
"new": [
42,
35,
28,
21,
12
],
"renewal": [
58,
44,
40,
30,
26
]
}
}
]
},
"options": {
"total": false,
"sharedScale": false,
"segmentValues": true,
"title": "Renewals carry more than half of the bookings in every region",
"subtitle": {
"measure": "Bookings",
"period": "FY 2026"
},
"source": "Illustrative data",
"size": {
"width": 1000
}
}
}Minimal spec
Save this spec as bartable.json and run the command.
{
"type": "bartable",
"data": {
"categories": [{ "id": "sw", "label": "Software" }, { "id": "ut", "label": "Utilities" }],
"series": [{ "id": "run", "label": "Run" }, { "id": "grow", "label": "Grow" }],
"columns": [{ "id": "n", "label": "# of companies", "values": [30, 45], "format": "1,234" }],
"panels": [
{
"id": "abs",
"label": "EBITDA impact",
"unit": "$bn",
"weight": 2,
"values": { "run": [40, 30], "grow": [100, 75] },
"ends": [{ "low": 110, "high": 160 }, { "low": 80, "high": 160 }]
},
{
"id": "pct",
"label": "Share of 2030 EBITDA",
"unit": "%",
"weight": 1,
"aggregate": "none",
"values": { "run": [8, 9], "grow": [26, 30] },
"ends": [{ "low": 28, "high": 40 }, { "low": 29, "high": 60 }]
}
]
},
"options": {
"total": true,
"title": "Software and utilities carry half of the upside",
"subtitle": { "measure": "Estimated 2030 EBITDA run-rate impact" },
"source": "Illustrative model"
}
}npx boardplot render bartable.json --out bartable.svg