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';
Use for
Ranking items · Tornado or football-field ranges · Values with long category names
Not for
The categories are periods (column or line); a few parts of one whole (pie or waffle); two measures per item (dot or butterfly).

Brand margin ranking against average and target

Grouped horizontal bar chart with 1 series. Brand A 42, Brand B 34, Our brand 28, Brand C 19, Brand D 8, Brand E −12, Brand F −15. Only two brands clear the $30 margin target we set Alpenrand Consumer Goods · Margin per unit in $ · FY25 · AC Source: Brand P&L, management accounts May 2026 Our brand Average 14.9 Target 30 Brand A Brand B Brand C Brand D Brand E Brand F 42 −15 28 34 19 −12 8

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.

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

Sensitivity tornado, one-at-a-time: each driver is varied alone with every other driver held at its base input, so the swings do not sum to a total and interaction effects are not shown. Base case 412. Drivers by swing: WACC 7.5% to 10.5%, Driver at low input 640, Driver at high input −30, swing 670, inverse; Revenue growth 2% to 6% p.a., Driver at low input 250, Driver at high input 560, swing 310; EBITDA margin 16% to 22%, Driver at low input 300, Driver at high input 520, swing 220; Terminal growth 0.5% to 2.0%, Driver at low input 350, Driver at high input 465, swing 115; Capex intensity 4% to 7% of sales, Driver at low input 470, Driver at high input 355, swing 115, inverse; EUR/USD 1.02 to 1.18, Driver at low input 385, Driver at high input 450, swing 65; Working capital 38 to 52 days, Driver at low input 430, Driver at high input 395, swing 35, inverse. 3 of 7 drivers are inverse: their high input produces the lower output. Equity NPV sensitivity to the main DCF drivers Brevinth Systems · Equity NPV in $m · Base case July 2026 Source: Illustrative DCF sensitivity, one driver varied at a time Driver at low input Driver at high input Base case 412 Capex intensity 4% to 7% of sales EBITDA margin 16% to 22% EUR/USD 1.02 to 1.18 Revenue growth 2% to 6% p.a. Terminal growth 0.5% to 2.0% WACC 7.5% to 10.5% Working capital 38 to 52 days 355 520 450 560 465 −30 395 470 300 385 250 350 640 430

Tornado of equity value around a base case of $412m for seven drivers; the discount rate swings it from −30 to 640.

Download SVG Fixture IDdcf-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 horizontal bar chart with 2 series. Cloud doubles in three years while license declines Revenue in $m · FY21–FY24 Source: Illustrative accounts Cloud License FY21 FY22 FY23 FY24 100 200 124 97 130 160 118 109 gap +103 Cloud +26% p.a.

Grouped bars FY21 to FY24: cloud doubles from $100m to $200m at +26% a year while license falls to 97, a gap of 103.

Download SVG Fixture IDgrouped-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 horizontal bar chart with 3 series. EMEA 100 (Assistants 44%, Platform APIs 33%, Assistant Suite 23%), Americas 100 (Assistants 38%, Platform APIs 30%, Assistant Suite 32%), APAC 100 (Assistants 26%, Platform APIs 24%, Assistant Suite 50%). Assistant Suite already drives half of APAC revenue Software Company A · Revenue share by product line · FY25 · AC Source: Illustrative billing data, FY25 close Assistants Platform APIs Assistant Suite Americas APAC EMEA 50% 44% 38% 33% 32% 30% 26% 24% 23%

100% stacked bars by region: the newest product line is 50% of APAC revenue, 32% in the Americas and 23% in EMEA.

Download SVG Fixture IDai-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 horizontal bar chart with 3 series. North 70, South 70, East 76, West 77. Core + Growth is highest in the west Revenue by segment in $m Source: Illustrative regional revenue model; the tick marks where Core + Growth ends, the figure after each bar is its total Core Growth Other Core + Growth 76 70 70 77 East North South West 46 42 40 38 28 24 18 16 14 10 9 8

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.

Download SVG Fixture IDstacked-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.

Grouped horizontal bar chart with 1 series. Germany 14, United Kingdom 9, Netherlands 4, Italy 2, France −6, Sweden −11. Four markets grow on the prior year while France and Sweden shrink Revenue change vs PY in $m · FY26 Source: Illustrative management accounts Revenue vs prior year above 0 (better) Revenue vs prior year below 0 (worse) Germany France Italy Netherlands Sweden United Kingdom 14 −11 9 −6 4 2

Bars of revenue change against prior year by market: four markets grow, France falls by $6m and Sweden by $11m.

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