# C waterfall chart 1

> MRR movement — new, expansion, contraction and churn

A shadcn/ui block from the [@cnippet](https://ui.cnippet.dev/?utm_source=shadcn.exchange) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/cnippet/c-waterfall-chart-1).

- Page, with a live preview: https://shadcn.exchange/r/cnippet/c-waterfall-chart-1
- Screenshot: https://shadcn.exchange/shot/cnippet/c-waterfall-chart-1/light.png
- Registry item: https://ui.cnippet.dev/r/c-waterfall-chart-1.json
- Categories: waterfall chart
- Listed: 2026-10-27, source last changed 2026-10-27

## Install

```bash
npx shadcn@latest add https://shadcn.exchange/r/cnippet/c-waterfall-chart-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@cnippet/waterfall-chart`, `@cnippet/chart-card`, `@cnippet/chart-utils`

## Files

### `registry/default/chart-variants/c-waterfall-chart-1.tsx`

```tsx
"use client";

import { ChartCard } from "@/registry/default/charts/chart-card";
import { WaterfallChart } from "@/registry/default/charts/waterfall-chart";
import { formatCurrency } from "@/registry/default/lib/chart-utils";

const data = [
  { amount: 184000, step: "Sep MRR" },
  { amount: 21400, step: "New" },
  { amount: 8600, step: "Expansion" },
  { amount: -5200, step: "Contraction" },
  { amount: -9800, step: "Churn" },
  { amount: null, step: "Oct MRR" },
];

export default function MrrMovement() {
  return (
    <ChartCard
      className="max-w-2xl"
      delta={0.078}
      description="How monthly recurring revenue moved in October"
      title="MRR movement"
      value={formatCurrency(199000)}
    >
      <WaterfallChart
        category="amount"
        className="h-52"
        data={data}
        index="step"
        totals={["Sep MRR", "Oct MRR"]}
        valueFormatter={formatCurrency}
      />
    </ChartCard>
  );
}
```
