WaterfallChart
Shows how a total moved from one figure to another. Connectors are mandatory — they are the chart.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
Shows how a total moved from one figure to another.
Accessibility
Each chart ships an accessible fallback (a visually-hidden data table / aria-label summary) so the data is available to screen readers, not just sighted users. Colour is paired with shape/label, never used alone.
Install and import
npx shadcn@latest add @prism/waterfall-chart
import { WaterfallChart } from '@/components/prism/WaterfallChart';
In a no-build prototype, read it from the bundle instead: const { WaterfallChart } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
items | WaterfallItem[] | Yes | |
height | number | — | |
showGrid | boolean | — | |
showValues | boolean | — | Print the signed change above each bar. Default true. |
formatValue | (value: number) => React.ReactNode | — | |
invertTone | boolean | — | Set when an increase is the bad outcome — cost, headcount attrition, defects. |
caption | string | — | |
className | string | — |