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';
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.

EBITDA upside by sector with ranges

Table of 8 rows with the columns # of companies and 2 stacked-bar panels, EBITDA impact, $bn; Share of 2030 EBITDA, %, each on its own scale. Segments: Run, Grow. The label at the end of each bar is the row total or its range. A bar with a range fills its segments to the low end and runs a light outlined extension to the high end. A Total row closes the table. Software and utilities carry about 42% of the upside Estimated 2030 EBITDA run-rate impact Source: Illustrative model Run Grow Range, low to high 15 23 45 20 14 64 30 45 10–30 8–16 60–100 70–110 30–50 90–140 110–160 80–160 10–18 7–14 30–44 31–45 12–24 24–35 28–40 29–60 EBITDA IMPACT, $bn # OF COMPANIES SHARE OF 2030 EBITDA, % Chemicals Construction Insurance Logistics Media Retail Software Utilities 458–766 Total 256

Bar table of 2030 EBITDA impact for eight sectors in dollar billions and as a share of EBITDA, with Run, Grow and range segments and a total of 458 to 766; Software and Utilities are highlighted.

Download SVG Fixture IDimpact-two-panels-named-share
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": "sw",
        "label": "Software"
      },
      {
        "id": "ut",
        "label": "Utilities"
      },
      {
        "id": "rt",
        "label": "Retail"
      },
      {
        "id": "lg",
        "label": "Logistics"
      },
      {
        "id": "in",
        "label": "Insurance"
      },
      {
        "id": "md",
        "label": "Media"
      },
      {
        "id": "ch",
        "label": "Chemicals"
      },
      {
        "id": "co",
        "label": "Construction"
      }
    ],
    "series": [
      {
        "id": "run",
        "label": "Run"
      },
      {
        "id": "grow",
        "label": "Grow"
      }
    ],
    "columns": [
      {
        "id": "n",
        "label": "# of companies",
        "values": [
          30,
          45,
          64,
          20,
          45,
          14,
          15,
          23
        ],
        "format": "1,234"
      }
    ],
    "panels": [
      {
        "id": "abs",
        "label": "EBITDA impact",
        "unit": "$bn",
        "weight": 2,
        "values": {
          "run": [
            40,
            30,
            35,
            25,
            28,
            12,
            6,
            4
          ],
          "grow": [
            100,
            75,
            80,
            60,
            52,
            28,
            14,
            8
          ]
        },
        "ends": [
          {
            "low": 110,
            "high": 160
          },
          {
            "low": 80,
            "high": 160
          },
          {
            "low": 90,
            "high": 140
          },
          {
            "low": 70,
            "high": 110
          },
          {
            "low": 60,
            "high": 100
          },
          {
            "low": 30,
            "high": 50
          },
          {
            "low": 10,
            "high": 30
          },
          {
            "low": 8,
            "high": 16
          }
        ]
      },
      {
        "id": "pct",
        "label": "Share of 2030 EBITDA",
        "unit": "%",
        "weight": 1,
        "aggregate": "none",
        "values": {
          "run": [
            8,
            9,
            7,
            10,
            12,
            6,
            4,
            3
          ],
          "grow": [
            26,
            30,
            22,
            28,
            25,
            12,
            9,
            7
          ]
        },
        "ends": [
          {
            "low": 28,
            "high": 40
          },
          {
            "low": 29,
            "high": 60
          },
          {
            "low": 24,
            "high": 35
          },
          {
            "low": 31,
            "high": 45
          },
          {
            "low": 30,
            "high": 44
          },
          {
            "low": 12,
            "high": 24
          },
          {
            "low": 10,
            "high": 18
          },
          {
            "low": 7,
            "high": 14
          }
        ]
      }
    ]
  },
  "options": {
    "total": true,
    "combinedShare": {
      "rows": [
        "sw",
        "ut"
      ],
      "label": "The two largest sectors"
    },
    "title": "Software and utilities carry about 42% of the upside",
    "subtitle": {
      "measure": "Estimated 2030 EBITDA run-rate impact"
    },
    "source": "Illustrative model",
    "size": {
      "width": 1000
    }
  }
}

Revenue concentration by market over time

Table of 12 rows and 2 stacked-bar panels, 2021, $ billion; 2025, $ billion, on one shared scale. Each panel is a cascade: a row's bar starts where the row above ended, on a light track over the panel total, with a share column beside it and a bracket with the combined share of Northland, Eastvale, Southmere, Westbrook and Lakeshore; the last column is 2021–2025 CAGR, %. Segments: Revenue. Each bar prints its value inside or beside it. A Total row closes the table. The top five markets hold about 70% of revenue, a little less than four years ago Revenue by market Source: Illustrative data Gross margin of market, % Low (0–10) Middle (11–20) High (>20) Rest rows +6.5 +5.6 +15.0 −3.8 +6.7 +0.92 +10.7 +9.4 +7.2 +4.5 +5.7 +2.8 7% 17% 1% 6% 6% 30% 2% 10% 3% 9% 2% 7% 8% 18% 1% 5% 6% 27% 2% 12% 3% 9% 2% 7% 69% 67% 5.6 13.2 0.8 4.9 4.4 24.1 1.4 7.9 2.2 6.8 1.6 5.9 7.2 16.4 1.4 4.2 5.7 25.0 2.1 11.3 2.9 8.1 2.0 6.6 2021–2025 CAGR, % SHARE SHARE 2021, $ billion 2025, $ billion Other coastal markets Eastvale Fairhaven Highmoor Lakeshore Northland Pinecrest Rest of world Riverton Southmere Stonebay Westbrook +4.2 Total 78.8 92.9

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%.

Download SVG Fixture IDcascade-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

Table of 6 rows and 4 stacked-bar panels, 2022; 2023; 2024; 2025, on one shared scale. Each panel is a cascade: a row's bar starts where the row above ended, on a light track over the panel total, with a share column beside it and a bracket with the combined share of Apparel and Footwear; the last column is 2022–2025 share change, pp. Segments: Revenue. Each bar prints its value inside or beside it. A Total row closes the table. Beauty gains share every year while apparel gives it up Revenue by product category, $m Source: Illustrative data +1.2 −7.8 +5.3 +2.2 −0.43 −0.45 11% 47% 5% 25% 8% 6% 11% 44% 6% 25% 8% 6% 11% 41% 8% 26% 8% 6% 12% 39% 10% 27% 7% 5% 71% 69% 67% 66% 41 182 18 96 30 23 47 188 26 108 33 24 52 190 37 121 35 26 58 193 49 133 36 27 2022–2025 SHARE CHANGE, pp SHARE SHARE SHARE SHARE 2022 2023 2024 2025 Accessories Apparel Beauty Footwear Home Other categories Total 390 426 461 496

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.

Download SVG Fixture IDcascade-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

Table of 5 rows and one stacked-bar panel, $m, each on its own scale. Segments: New contracts, Renewals. The label at the end of each bar is the row total or its range. A part wide enough prints its value inside the bar. Renewals carry more than half of the bookings in every region Bookings · FY 2026 Source: Illustrative data New contracts Renewals 38 68 100 79 51 $m Central East North South West 12 26 28 40 42 58 35 44 21 30

Stacked bar table of FY 2026 bookings for five regions, from 100 in North to 38 in Central, split into new contracts and renewals.

Download SVG Fixture IDsingle-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