# Cashflow Trend block

> Cashflow composed chart with a balance panel, in and out columns, net flow dots and a waterfall

Operating cashflow card: a balance panel over a reserve floor above in and out columns with net flow dots, or a Waterfall from the opening; closing cash, burn and low point KPIs, a 3 row breakdown, CSV export. ReUI Frame, Badge. Finance dashboards.

- Type: Pro block
- Category: [Composed Chart](https://web.dev.reui.io/blocks/chart/composed-chart.md)
- Page: https://web.dev.reui.io/blocks/chart/composed-chart/chart-21
- MCP: `get_block("chart-21")`
- Built with: Badge, Button, Button Group, Chart, Dropdown Menu, Frame, Tooltip
- Installs with a ReUI Pro or Ultimate license; setup: https://web.dev.reui.io/docs/license-setup

## Best for

Operating cash in, out and net by month or quarter, as flows or a waterfall bridge, with the balance over a reserve floor

## Agent notes

- Replace `MONTHLY` (line items in $ thousands), `OPENING_BALANCE` and `RESERVE_FLOOR` in data.ts; every total, balance and KPI derives from them
- `bridgeOf` in cashflow.ts builds the Waterfall from the same periods; `OUTFLOW_GROUPS` folds the outflow items into 3 breakdown rows
- `CashflowActions` export and copy client side only; point `downloadCsv` at your own report endpoint for server-built files

## When not to use

- Liquidity moving across pools or accounts rather than one company's operating cash: use [Liquidity Flows](https://web.dev.reui.io/blocks/chart/composed-chart/chart-19.md) (`get_block("chart-19")`)
- Monthly leads this year over last year with a trend line fitted to this year only: use [Inbound Leads](https://web.dev.reui.io/blocks/chart/area-chart/chart-52.md) (`get_block("chart-52")`)

## Third-party libraries

- Recharts v3: [API reference](https://recharts.github.io/en-US/api/), [docs](https://recharts.github.io/en-US/guide/getting-started/)
- Sonner v2: [API reference](https://sonner.emilkowal.ski/toast), [docs](https://sonner.emilkowal.ski/getting-started)

## Install

```bash
npx shadcn@latest add @reui/chart-21
```

## About Composed Chart blocks

### When to use

- Bars and a line on one time axis, such as revenue and opex columns under an operating margin line
- A measure against its goal or limit, such as closed sales against a dashed goal or latency past a limit
- Cash or liquidity flowing in and out by period, over the balance those flows add up to

### When not to use

- One volume series alone, with no goal or baseline to compare against: use the [Area Chart blocks](https://web.dev.reui.io/blocks/chart/area-chart.md)
- Two or more series drawn only as strokes across shared time buckets: use the [Line Chart blocks](https://web.dev.reui.io/blocks/chart/line-chart.md)

### Agent notes

- Every block plots in a recharts `ComposedChart` in the shadcn `ChartContainer`; a new series is one more `Bar`, `Area` or `Line` child with a `dataKey`

Every ReUI item has a twin like this one; the index is https://web.dev.reui.io/llms.txt. Agents with the ReUI MCP (https://web.dev.reui.io/docs/mcp) get the same guidance from the getters named above.
