<!-- generated by scripts/gen-docs.mjs from docs/system/bar-chart.md. Edit the source and rerun. -->
# BarChart

## Description
Draws an amount per period or per group as bars measured from zero, so a person compares groups by length and reads any one of them.

`import { BarChart } from "@/components/cobalt/ui/bar-chart"`, source `registry/cobalt/ui/bar-chart.tsx`, status `ready-with-gaps`.
Foundation: `hand-rolled`. Traps checked: `trap/loading-layout-shift`, `trap/color-only-status`, `trap/live-region-double`, `trap/reduced-motion-ignored`, `trap/motion-transition-all`, `trap/motion-layout-property`, `trap/numbers-shift`, `trap/tooltip-essential`, `trap/tooltip-interactive`, `trap/touch-hover-flash`, `trap/hover-unguarded` (n/a: no CSS hover reveals anything; the overlay follows the hover store), `trap/demo-on-timers` (n/a: every example holds fixed data), `trap/illustration-announced` (n/a: the marks are `aria-hidden` and the table carries the data), `trap/loop-offscreen` (n/a: nothing loops).

### Foundation
Not applicable: hand-rolled.

| Given by the foundation | Added by the team |
|---|---|
| `d3-scale` band and linear scales for the maths only | A thin wrapper over the shared XY engine in `chart.tsx`, set to `mark: "bar"`: the engine gives the frame (fixed box, hover store, tooltip, keyboard, states, summary and table), bars measured from zero that run the other way below it with only the data end rounded, a comparison series as a grey bar beside each group, the bar under the pointer kept while the others dim to 40%, every group's name under its column, broken onto two lines at a space where one line does not fit, and shortened with an ellipsis only where two do not, a left gutter sized to the widest group name (at most 40% of the width) for horizontal bars, or each name over its bar at the box's whole width when a name is wider than that and a row has room for a line over a bar, with the gridlines stopping at the names, and one-pixel columns once a bar is narrower than 1.5px; `BarChart` adds only `orientation` and `layout` |

## Examples
Filings received each week, each beside the same week a year before.

Real uses, 0 call sites (`rg -n "<BarChart\b" app docs/system/examples --glob '!docs/system/examples/bar-chart/*'`): no showcase page draws one outside its examples yet, and the examples folder does not count.

Uses inside the registry: none beyond its tests. The in-card.tsx example puts it in a `ChartCard` with the year's net figure as the headline.

### Example files
| File | Covers | Caption |
|---|---|---|
| `docs/system/examples/bar-chart/default.tsx` | default | Filings received each week, each beside the same week a year before |
| Not applicable: vertical is the default, the columns in default.tsx | orientation=vertical | Columns that rise from the bottom |
| `docs/system/examples/bar-chart/orientation-horizontal.tsx` | orientation=horizontal | The largest advisers by assets as bars from the left, so their long names have room; in a narrow box each name sits over its bar |
| Not applicable: grouped is the default, the pairs of bars in default.tsx | layout=grouped | Series side by side in each group |
| `docs/system/examples/bar-chart/layout-stacked.tsx` | layout=stacked | Filings each quarter stacked by form, so the top of each bar is the quarter's total |
| `docs/system/examples/bar-chart/matrix-orientation-layout.tsx` | matrix:orientation,layout | Each orientation in each layout: holdings by sector split into stocks and bonds |
| `docs/system/examples/bar-chart/in-card.tsx` | composition:ChartCard | Monthly flows in a chart card, with the year's net flow, summed from the bars, as the headline |
| `docs/system/examples/bar-chart/config-keyed.tsx` | config=keyed | Names and colours keyed by series, in the shape of a shadcn chart config, so a shadcn chart moves over with its config |
| `docs/system/examples/bar-chart/series-mark-line.tsx` | mark=line | Filings each week as bars, with their four-week average drawn over them as a line |

Example: Filings received each week, each beside the same week a year before (`docs/system/examples/bar-chart/default.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";

// Filings received each week, with the same week a year before.
const weeks = [
  [212, 188], [236, 201], [198, 214], [251, 220], [274, 236], [229, 241], [262, 230], [288, 249], [301, 262], [277, 255],
].map(([filings, before], i) => ({
  week: new Date(Date.UTC(2026, 6, 6) + i * 7 * 86_400_000).toISOString().slice(0, 10),
  filings: filings ?? 0,
  before: before ?? 0,
}));
const series = [
  { key: "filings", label: "Filings", value: "filings" as const },
  { key: "before", label: "Same week last year", value: "before" as const, kind: "previous" as const },
];

export default function Example() {
  return <BarChart label="Filings per week" data={weeks} x="week" series={series} />;
}
```

Example: Each orientation in each layout: holdings by sector split into stocks and bonds (`docs/system/examples/bar-chart/matrix-orientation-layout.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";

// Market value by sector and asset type, in millions of dollars.
const sectors = [
  { sector: "Technology", stocks: 1240, bonds: 310 },
  { sector: "Health care", stocks: 690, bonds: 220 },
  { sector: "Financials", stocks: 410, bonds: 480 },
  { sector: "Energy", stocks: 150, bonds: 90 },
].map((row) => ({ ...row, stocks: row.stocks * 1e6, bonds: row.bonds * 1e6 }));
const series = [
  { key: "stocks", label: "Stocks", value: "stocks" as const },
  { key: "bonds", label: "Bonds", value: "bonds" as const },
];

export default function Example() {
  return (
    <div className="grid w-full gap-8 md:grid-cols-2">
      {(["vertical", "horizontal"] as const).map((orientation) =>
        (["grouped", "stacked"] as const).map((layout) => (
          <BarChart
            key={`${orientation}-${layout}`}
            label={`Holdings by sector, ${orientation} and ${layout}`}
            height="sm"
            orientation={orientation}
            layout={layout}
            data={sectors}
            x="sector"
            series={series}
            format="money"
          />
        )),
      )}
    </div>
  );
}
```

Example: Monthly flows in a chart card, with the year's net flow, summed from the bars, as the headline (`docs/system/examples/bar-chart/in-card.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";
import { ChartCard } from "@/components/cobalt/ui/chart-card";
import { compactMoney } from "@/lib/cobalt/format";

// Money in and out of a fund each month of 2025, in millions of dollars; outflows are negative.
const flows = [
  [420, -310], [380, -290], [510, -460], [290, -520], [610, -300], [450, -380],
  [330, -410], [560, -350], [480, -500], [620, -290], [390, -440], [700, -360],
].map(([inflows, outflows], i) => ({
  month: `2025-${String(i + 1).padStart(2, "0")}`,
  inflows: (inflows ?? 0) * 1e6,
  outflows: (outflows ?? 0) * 1e6,
}));
const series = [
  { key: "inflows", label: "Inflows", value: "inflows" as const },
  { key: "outflows", label: "Outflows", value: "outflows" as const },
];

const into = flows.reduce((sum, month) => sum + month.inflows, 0);
const out = flows.reduce((sum, month) => sum + month.outflows, 0);
const net = into + out;

export default function Example() {
  return (
    <ChartCard
      className="w-full max-w-xl"
      title="Net flows in 2025"
      value={`${net > 0 ? "+" : ""}${compactMoney(net)}`}
      note={`${compactMoney(into)} in, ${compactMoney(-out)} out`}
    >
      <BarChart label="Flows by month" layout="stacked" data={flows} x="month" series={series} format="money" />
    </ChartCard>
  );
}
```

## Variants

### orientation
- `vertical`: columns that rise from the bottom, the default, for amounts per period or for group names that fit under their column. Used at 0 call sites.
- `horizontal`: bars that run from the left with the names in a gutter beside them, for long group names such as sectors; a name wider than 40% of the box sits over its bar instead, when each row has 32px for it. Used at 0 call sites.

Example: The largest advisers by assets as bars from the left, so their long names have room; in a narrow box each name sits over its bar (`docs/system/examples/bar-chart/orientation-horizontal.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";

// Regulatory assets under management, from each adviser's latest Form ADV, in dollars.
const advisers = [
  { adviser: "Northwind Capital Management", assets: 4.71e9 },
  { adviser: "Harbor Point Advisors", assets: 2.14e9 },
  { adviser: "Calder & Rowe Investment Partners", assets: 1.62e9 },
  { adviser: "Fjord Asset Management", assets: 1.18e9 },
  { adviser: "Juniper Partners", assets: 8.8e8 },
  { adviser: "Saltmarsh Capital", assets: 4.1e8 },
];
const series = [{ key: "assets", label: "Assets", value: "assets" as const }];

export default function Example() {
  return (
    <BarChart
      label="Largest advisers by assets"
      orientation="horizontal"
      height="lg"
      data={advisers}
      x="adviser"
      series={series}
      format="money"
    />
  );
}
```

### layout
- `grouped`: series side by side in each group, the default, for series compared with each other. Used at 0 call sites.
- `stacked`: series piled into one bar per group, with values below zero stacked downward, for parts of one total. Used at 0 call sites.

Example: Filings each quarter stacked by form, so the top of each bar is the quarter's total (`docs/system/examples/bar-chart/layout-stacked.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";

// Filings received each quarter, by form.
const quarters = [
  ["Q1 2025", 1180, 942, 611],
  ["Q2 2025", 1264, 958, 574],
  ["Q3 2025", 1092, 971, 633],
  ["Q4 2025", 1310, 1004, 702],
  ["Q1 2026", 1235, 1018, 655],
  ["Q2 2026", 1342, 1037, 618],
  ["Q3 2026", 1168, 1051, 689],
].map(([quarter, adv, holdings, d]) => ({ quarter: String(quarter), adv: Number(adv), holdings: Number(holdings), d: Number(d) }));
const series = [
  { key: "adv", label: "Form ADV", value: "adv" as const },
  { key: "holdings", label: "13F holdings", value: "holdings" as const },
  { key: "d", label: "Form D", value: "d" as const },
];

export default function Example() {
  return <BarChart label="Filings by form each quarter" layout="stacked" data={quarters} x="quarter" series={series} />;
}
```

Example: Names and colours keyed by series, in the shape of a shadcn chart config, so a shadcn chart moves over with its config (`docs/system/examples/bar-chart/config-keyed.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";
import type { ChartConfig } from "@/components/cobalt/ui/chart";

// Money into and out of a fund each month, in dollars.
const months = [
  { month: "Jan", inflows: 410e6, outflows: 280e6 },
  { month: "Feb", inflows: 365e6, outflows: 310e6 },
  { month: "Mar", inflows: 482e6, outflows: 295e6 },
  { month: "Apr", inflows: 398e6, outflows: 342e6 },
  { month: "May", inflows: 455e6, outflows: 301e6 },
  { month: "Jun", inflows: 512e6, outflows: 288e6 },
];

// The colour sets `--color-inflows` and `--color-outflows` on the chart, as shadcn's ChartContainer does.
const config = {
  inflows: { label: "Inflows", color: "var(--chart-1)" },
  outflows: { label: "Outflows", color: "var(--chart-2)" },
} satisfies ChartConfig;
const series = [
  { key: "inflows", value: "inflows" as const },
  { key: "outflows", value: "outflows" as const },
];

export default function Example() {
  return <BarChart label="Monthly flows" data={months} x="month" series={series} config={config} format="money" />;
}
```

Example: Filings each week as bars, with their four-week average drawn over them as a line (`docs/system/examples/bar-chart/series-mark-line.tsx`)

```tsx
import { BarChart } from "@/components/cobalt/ui/bar-chart";

// Filings received each week.
const counts = [212, 236, 198, 251, 274, 229, 262, 288, 301, 277, 259, 296];
const weeks = counts.map((filings, i) => {
  const window = counts.slice(Math.max(0, i - 3), i + 1);
  return {
    week: new Date(Date.UTC(2026, 6, 6) + i * 7 * 86_400_000).toISOString().slice(0, 10),
    filings,
    average: Math.round(window.reduce((sum, n) => sum + n, 0) / window.length),
  };
});
const series = [
  { key: "filings", label: "Filings", value: "filings" as const },
  { key: "average", label: "Four-week average", value: "average" as const, mark: "line" as const },
];

export default function Example() {
  return <BarChart label="Filings per week" data={weeks} x="week" series={series} />;
}
```

## States
| State | Trigger | What the user can do | Shown by, besides color | Checked by |
|---|---|---|---|---|
| idle | data with at least one value that is not zero | read the bars, hover, tab in | the bars, the axes, the legend when there are two series or a comparison | screenshot |
| hover | the pointer over the box, snapped to the nearest point or group | read the tooltip, move along | the tooltip 6px above the plot, centred on the group, so it never covers a taller bar beside it (on horizontal bars, 6px beside the furthest bar end of the row and the rows within 40px of it, centred on the row and kept between the plot's top and bottom, or above the whole plot when the window has no room beside), and the other bars dim to 40% | screenshot |
| focus | Tab reaches the box | step with the arrow keys | the system focus outline on the box, the last point shown, the live line read aloud | by hand |
| crowded | each bar would be narrower than 1.5px | read the tooltip, move along | the bars merged into one-pixel columns; the others no longer dim | screenshot |
| pending | `status="pending"` with nothing drawn yet | wait | `aria-busy`; nothing for 250ms, then a Skeleton block at the box's size | test |
| refreshing | `status="pending"` with marks on screen | read the old marks | `aria-busy`; after 250ms the marks dim to 55% and the hover stops; the new marks fade in when they arrive | by hand |
| empty | no value, or every value zero, and not pending | read why | the sentence "Nothing to show for this period." centred in the box | test |
| failure | `status="failure"` | press Retry | the title "Could not load the chart" announced once as an alert, and Retry when `onRetry` is passed | test |

### State precedence
- Failure and pending: failure wins. The box shows the failure and its Retry.
- Pending and empty: pending wins. The box stays blank, then shows the Skeleton after the slow wait; the empty sentence never flashes.
- Hover and focus: the last one wins. The pointer and the keys move the same marker, so one point shows at a time.
- Crowded and hover: crowded wins on the dimming. The crosshair and tooltip show, and the other bars no longer dim, because they are merged into columns of one pixel.
- Stacked and comparison series: stacked wins. The comparison series is not stacked and not drawn; it stays in the legend and the table.

### Motion
| Trigger | Kind | Preset | Properties | Reduced motion |
|---|---|---|---|---|
| the crosshair, markers and tooltip appear or leave | announce | `popup-motion` at `--t-press` 140ms on `--curve`, leaving at 70% | opacity | the same fade, which the base layer keeps |
| the hovered point changes | input | none: snaps with no transition | transform | the same snap |
| a bar dims beside the hovered one, a legend item brings its series forward | announce | `duration-press` on `--curve` | opacity | the same fade |

## Props

<!-- Props generated from registry/cobalt/ui/bar-chart.tsx with TypeScript by scripts/props-table.mjs -->
| Prop | Type | Default | Purpose |
|---|---|---|---|
| `data` | `readonly T[]` |  |  |
| `label` | `string` |  |  |
| `series` | `readonly ChartSeries<T>[]` |  |  |
| `x` | `Accessor<T, string \| number \| Date>` |  | The position along the bottom: a date (Date or ISO string), a number or a name. |
| `active?` | `number` |  |  |
| `className?` | `string` |  |  |
| `config?` | `ChartConfig` |  | Names and colours by series key, as shadcn's `ChartConfig`. |
| `domain?` | `readonly [number, number]` |  | A fixed value range, in place of the one read from the data. |
| `format?` | `ValueFormat` |  | How values read on the axis and in the tooltip. |
| `height?` | `ChartHeight` |  |  |
| `labels?` | `Partial<ChartLabels>` |  |  |
| `layers?` | `((scope: ChartScope) => ReactNode)` |  | Your own SVG, drawn over the marks with the chart's scales: a reference line, a band, a note. |
| `layout?` | `"grouped" \| "stacked"` | `"grouped"` | Series side by side in each group, or piled into one bar. |
| `legend?` | `"auto" \| "none"` |  | "auto" shows it for two series or more, or a comparison; "none" hides it. |
| `locale?` | `string` |  |  |
| `onActiveChange?` | `((index: number) => void)` |  |  |
| `onRetry?` | `(() => void)` |  |  |
| `orientation?` | `"vertical" \| "horizontal"` | `"vertical"` | Columns that rise from the bottom, or bars that run from the left for long names. |
| `status?` | `Status` |  |  |
| `summary?` | `string` |  | Your own sentence for screen readers; one is written from the data otherwise. |
| `tooltip?` | `boolean` |  |  |
| `xFormat?` | `((value: string \| number \| Date) => string)` |  | How an x value reads in the tooltip and table, in place of the default date or name. |

`orientation` is `vertical` or `horizontal`. `layout` is `grouped` or `stacked`. Everything else comes from the shared frame: `data`, `x`, `series` (each with a `key`, a `label`, which falls back to `config[key].label` and then the key, a `value`, an optional `kind: "previous"` for the comparison, its own `format`, and an optional `mark`), `format`, `xFormat`, `domain`, `legend`, `config`, `layers`, `label`, `summary`, `status`, `onRetry`, `height`, `labels`, `tooltip`, `active`, `onActiveChange` and `locale`; `Chart` documents them. The seventh to twelfth series draw in the same colours at half strength. On vertical bars a series with `mark: "line"` draws as a line through the middle of each group, over the bars, outside the stack and the grouping, with a marker on hover: a combo. Horizontal bars draw every series as a bar.

## Usage

### When to use
- Amounts per period or per group are compared by length, such as filings each week or holdings by sector.
- Series are parts of one total in each group, such as money in and money out each month, and the stack is the net.
- Group names are long enough that a person needs them beside the bars.

### When not to use
- The value is a level that moves in a narrow band and bars would all look the same height. Use LineChart instead.
- A count of rows falls into ranges of one value. Use Histogram instead.
- A ranked list of names whose values a person reads one by one. Use BarList instead.
- A total moves from one amount to another in steps. Use WaterfallChart instead.

### Rules
- `rule/bar-chart-horizontal-for-long-names`: When the group names are wider than a column gives them, such as sector names, set `orientation="horizontal"` instead of leaving vertical columns, because horizontal bars put the names in a gutter of up to 40% of the width, or over each bar at the whole width, and vertical columns give a name two lines at most and shorten it past that. Evidence: principle heuristic: recognition rather than recall; single use registry/cobalt/ui/chart.tsx:2290-2291. Check: review of every `BarChart` whose `x` names run past a word, for `orientation="horizontal"`.
  - Don't: `<BarChart label="Holdings by sector" data={sectors} x="sector" series={series} />`
  - Do: `<BarChart label="Holdings by sector" orientation="horizontal" data={sectors} x="sector" series={series} />`
- `rule/bar-chart-stack-parts-compare-groups`: When series are parts of one total in each group, such as inflows and outflows in a month, set `layout="stacked"`, and when they are compared with each other leave `layout="grouped"`, because only the piece on the zero line shares a baseline in a stack, so stacked pieces cannot be compared by length. Evidence: principle heuristic: match between system and real world; single use docs/system/examples/bar-chart/in-card.tsx:32. Check: test `bar-chart.test.tsx` expects a stacked bar to add the table cell of each series.
  - Don't: `<BarChart label="Stores" layout="stacked" data={stores} x="month" series={[northStore, southStore]} />`
  - Do: `<BarChart label="Flows" layout="stacked" data={flows} x="month" series={[inflows, outflows]} />`
- `rule/bar-chart-bars-start-at-zero`: When bars would need a value axis that starts above zero, draw the series with `LineChart` instead of passing a `domain` to `BarChart`, because the length of a bar is its value and a cut bar shows a gap that is not in the data. Evidence: principle heuristic: match between system and real world; principle heuristic: error prevention. Check: test `chart-math.test.ts` expects bars and areas to keep zero and a line to keep its own range.
  - Don't: `<BarChart label="Unit price" domain={[98, 102]} data={prices} x="day" series={price} />`
  - Do: `<LineChart label="Unit price" domain={[98, 102]} data={prices} x="day" series={price} />`

### Content
- Follows `rule/writing-no-invented-numbers`.
- Follows `rule/chart-label-names-the-data`.
- `rule/bar-chart-group-names-in-full`: When a group is named in `x`, pass its full name, such as "Health care", and let the chart break it onto two lines, or shorten it with an ellipsis where even two do not fit, instead of abbreviating it in the data, because the table, the tooltip and the summary read the same field, and an abbreviation is read out letter by letter. Evidence: principle wcag: 3.1.4 Abbreviations; principle heuristic: recognition rather than recall. Check: test `bar-chart.test.tsx` expects the full names in the table rows.
  - Don't: `{ sector: "Hlth care", value: -9.6e8 }`
  - Do: `{ sector: "Health care", value: -9.6e8 }`

### Anti-slop
- `rule/bar-chart-negatives-are-negative`: When a group lost money, pass a negative number to `BarChart` instead of its absolute value with a separate series or colour, because a bar below zero runs the other way from the zero line, the tooltip and the table write it with the real minus, and colour is never the only cue. Evidence: principle wcag: 1.4.1 Use of color; person D13. Check: test `bar-chart.test.tsx` expects "−$960M" in the table row of a negative bar.
  - Don't: `{ sector: "Health care", loss: 9.6e8 }`
  - Do: `{ sector: "Health care", value: -9.6e8 }`

### Limits
- `rule/bar-chart-merges-below-1-5px`: When the groups leave each bar narrower than 1.5px, pass all the rows to `BarChart` instead of thinning them yourself, because the chart merges the bars into columns of one pixel, stops dimming the others, and hover still snaps to the real group. Evidence: measured hover median 3ms, p95 3.8ms and layout shift 0 on the huge bar chart, .design-system/evidence/charts/hover-cost.jsonl. Check: probe the hover-cost run on `bar-chart` in the huge state, which reads layout shift 0.
  - Don't: `<BarChart data={days.filter((_, i) => i % 40 === 0)} x="day" series={series} label="Daily value" />`
  - Do: `<BarChart data={days} x="day" series={series} label="Daily value" />`

## Accessibility
Rests on the Chart frame: a focusable `div` with `role="group"` and `aria-roledescription="chart"`, one tab stop. The bars are `aria-hidden`; the data is a visually hidden sentence (`aria-describedby`) and a visually hidden `table` with a row per group and a column per series, negatives written with the real minus, sampled to 200 evenly spaced rows with a note past that. The group names come from `x`, so the table and the sentence read them in full where the axis shortens them with an ellipsis. Series colours hold 3:1 on the card in both themes (test). Screen reader pass with VoiceOver: NEEDS REVIEW.

### Keyboard
| Key | Where focus is | Effect | Focus after | Checked by |
|---|---|---|---|---|
| Tab | before the chart | focuses the box and shows the last point | the box | by hand |
| Right, Left | the box | the next or previous point | the box | by hand |
| Home, End | the box | the first or the last point | the box | by hand |
| Page Down, Page Up | the box | a tenth of the points on or back, at least 2 | the box | by hand |
| Escape | the box, or the pointer over it | hides the crosshair and tooltip | stays | by hand |
| Tab | the box | leaves the chart; the legend buttons come next | the next control | by hand |

### ARIA
| Part | Role | Accessible name from | States and properties | Announced | Checked by |
|---|---|---|---|---|---|
| box | group | `label`, through `aria-label`; `aria-roledescription` from `labels.chart` | `aria-describedby` the summary; `aria-busy` while pending | the name, "chart" and the summary when it is reached | test |
| live line | none, `aria-live="polite"` | nothing | none | the point and each series' value as the keys move; pointer moves are silent | by hand |
| table | table | its caption, the `label` | a row header per point | read on request from the table list | test |
| legend item | button | its series name | `aria-pressed` | the name and pressed or not | test |
| failure | alert | its title | none | "Could not load the chart" once | test |

## Tokens
| Part | State | Token |
|---|---|---|
| series | all | `--chart-1`, `--chart-2`, `--chart-3`, `--chart-4`, `--chart-5`, `--chart-6` |
| comparison series | all | `--chart-previous` |
| gridlines | all | `--chart-grid` |
| zero line | all | `--border` |
| axis labels | all | `--muted-foreground` |
| crosshair | hover | `--foreground` at 15% |
| marker ring | hover | `--card` |
| tooltip | hover | `--tip`, `--tip-foreground`, `--r-md`, `--t-press`, `--curve` |
| legend swatch | all | `--r-xs` |

## Related
- Chart: the frame every chart type draws in, with the shared states, keys and table.
- LineChart: a level that moves in a narrow band, or a value that changes gradually.
- Histogram: how many rows fall into each range of one value.
- WaterfallChart: how a total moved from one amount to another, step by step.
- BarList: ranked names whose values are read one by one.
- ChartCard: a card with the chart's title and headline figure.
- AreaChart: an amount over time filled to zero, stacked or not.
- CompositionBar: the parts of one whole in a single bar, with each part's amount and share.
