MoneyBarChart
Grouped/stacked, zero-baseline origin, hatched negatives.
npx shadcn add @lopifi/money-bar-chartExamples
The same component, case by case. Each stage is the shipped code with the props it shows; switch to Code for the usage.
Stacked, with outflows
Inflows stack up and outflows down from zero; the net sits past the end of its stack.
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.
Grouped and stacked.
transform-originat the zero baseline, not the bottom. Otherwise negative bars grow up from the floor and briefly show the wrong sign, which is a real correctness bug.- Negative bars hatched.
- Stacked totals labeled at the bar end.
- Bar radius 4 on the outer corners only, and square below 12px bar width, since a rounded 6px bar is a blob.
- Draw-in:
scaleY 0→1, 400ms, stagger 30ms capped at 240ms. First paint only.
More in Dashboard & charts
See also
Where this component is specified, defined and running.
Elsewhere in the system
The live section MoneyBarChart renders in, the calculators behind its figures, and the ledger payloads that feed it.
- MoneyBarChart, 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