Columns of stacked segments. This is the multi-series chart BarChart
left room for: with no second colour to tell series apart, each series gets its own dither density
(--dm-series-1 … --dm-series-6, sparsest to densest), which survives printing, projection and
colour-blind viewing. At most six series; extras are dropped.
tsx
<StackedBarChart title="GPU usage by type" />title
Accessibility
The plot is role="img" named by title, and the real numbers stay available as a visually-hidden
<table> — one row per column, one cell per series — the same approach BarChart takes.
Examples
labels names the columns and labelEvery thins the axis when there are many of them:
tsx
<StackedBarChart
title="GPU usage by type"
labels={hours}
labelEvery={3}
series={[
{ label: "A100", values: a100 },
{ label: "H100", values: h100 },
]}
/>Props
| Prop | Type | Default | Description |
|---|---|---|---|
| header | readonly | — | Rendered above the plot — typically a `BracketValue` or filter controls. |
| labelEvery | number | — | Draw every n-th column label. Defaults to 1. |
| labels | readonly | — | Label for each column (`"1"`, `"4"`, …). Only every `labelEvery`-th one is drawn. |
| plotHeight | number | — | Plot height in px. Defaults to 110. |
| series * | readonly | — | At most 6 series — one per dither density in `--dm-series-*`; extras are dropped. |
| title * | text | — | Accessible name for the whole chart. |