WaterfallChart
The P&L bridge. Essential and rare.
npx shadcn add @lopifi/waterfall-chartExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Cash bridge
Opening to closing cash: the ends are positions, the steps movements that must sum to the end.
Ending below zero
Costs past revenue carry the bridge below zero, and the loss is drawn there, not clipped.
How it behaves
What it renders, what it refuses to render, and why. The same paragraphs as the family spec, so the two can’t disagree.
The P&L bridge. Essential in finance, and nearly absent from open-source charting.
Start → increases → decreases → end, with connector lines between bars. Increases --positive, decreases --negative, subtotals neutral, with all three told apart by position and connector, not color alone.
Every subtotal and end bar is checked against the running sum of the steps before it. A bar that misses is plotted as stated — the caller's figure is the claim — and the break is said in words with an icon under the chart: "Net income doesn’t tie by $1,200.00: the steps sum to …, the bar states …".
The most useful chart in the family. It answers "why did net income change?" in one image.
The accounting it encodes
The concepts this component renders, each defined once in the lexicon.
More in Dashboard & charts
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section WaterfallChart renders in, the calculators behind its figures, and the ledger payloads that feed it.
- WaterfallChart, runningThe charts showcase — live, with theme, density, grayscale and reduced-motion switches.
- Dashboard & chartsWe wrap a charting engine (Recharts, or visx where we need more control) instead of building one. What we add is everything a chart library doesn't know about money. Specs for 11 React components: DashboardShell, KpiRow, MoneyChart, MoneyBarChart and 7 more.
Components are copied into your repository and meant to be edited. Rounding policy, fiscal calendar and compliance copy differ per company.
Release notes
Get an email when Dashboard & charts changes
Your copy doesn’t update itself when we fix something here.
- One email when a Dashboard & charts component needs a migration
- Nothing when nothing changes
Or install it now