ColumnChart
Extruded columns for the Industry theme — categorical comparison where the categories have a natural order (hours, days, steps, bins).
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Extruded columns for the Industry theme — categorical comparison where the categories have a natural order (hours, days, steps, bins).
Accessibility
Fully keyboard operable: Tab to focus, Enter/Space to activate. The visible focus ring uses --focus-ring — never remove it. Provide an accessible label (aria-label) for icon-only controls.
Install and import
npx shadcn@latest add @prism/column-chart
import { ColumnChart } from '@/components/prism/ColumnChart';
In a no-build prototype, read it from the bundle instead: const { ColumnChart } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
data | ColumnDatum[] | — | |
height | number | — | Plot height in px. |
color | string | — | Single series colour used for every column. |
colorByIndex | boolean | — | Walk the series family instead of using one colour. |
showValues | boolean | — | |
formatValue | (v: number) => React.ReactNode | — | |
caption | string | — |