Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
dataColumnDatum[]—
heightnumber—Plot height in px.
colorstring—Single series colour used for every column.
colorByIndexboolean—Walk the series family instead of using one colour.
showValuesboolean—
formatValue(v: number) => React.ReactNode—
captionstring—