components

StackedBarChart

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
GPU usage by type
ColumnA100H100L4
1642
2853
3762
4954
51073
6862
7642
8753
  • A100
  • H100
  • L4
<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

PropTypeDefaultDescription
headerreadonly—Rendered above the plot — typically a `BracketValue` or filter controls.
labelEverynumber—Draw every n-th column label. Defaults to 1.
labelsreadonly—Label for each column (`"1"`, `"4"`, …). Only every `labelEvery`-th one is drawn.
plotHeightnumber—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.