Skip to main content

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

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

PropTypeRequiredDescription
itemsWaterfallItem[]Yes
heightnumber—
showGridboolean—
showValuesboolean—Print the signed change above each bar. Default true.
formatValue(value: number) => React.ReactNode—
invertToneboolean—Set when an increase is the bad outcome — cost, headcount attrition, defects.
captionstring—
classNamestring—