Waterfall Chart
A revenue waterfall steps through gains and losses into a gradient total of $84k MRR. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/waterfall-chartUsage
// src/Root.tsx
import { Composition } from "remotion";
import { WaterfallChart } from "@/components/remocn/waterfall-chart";
const WaterfallChartScene = () => (
<WaterfallChart
title="Net revenue, Q3"
start={{ label: "Start", value: 52 }}
steps={[
{ label: "Churn", value: -7 },
{ label: "New", value: 24 },
{ label: "Expansion", value: 12 },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="WaterfallChart"
component={WaterfallChartScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);A starting column is set, then each step floats up or down as a green gain or red loss, and the total rises last in gradient while its value counts up. Pass start, steps (label and signed value), totalLabel and title; use format to control how numbers print. Ships dark and light via theme.
Props16
| Prop | Type | Default |
|---|---|---|
| start | WaterfallStepDEFAULT_START The opening column, with a label and value. | |
| steps | WaterfallStep[]DEFAULT_STEPS Changes applied in order; negative values step down. | |
| totalLabel | string"MRR" Label on the final total column. | |
| title | string"Net revenue, Q3" Small heading over the chart. | |
| format | (value: number) => stringdefaultFormat Turns a number into display text, such as $84k. | |
| fontFamily | string"Instrument Sans" Typeface for the copy. Load the font in your project first. | |
| grow | number15 Frames each step bar takes to grow. | |
| radius | number2 Corner radius of the bars, in px at 720p. | |
| accent | string"#3B5BFD" Accent color for the hero element. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| grain | booleantrue Film grain over the scene. | |
| scale | number1 Size of the foreground around the frame's center; the background stays put. | |
| delay | number0 Frames to hold the first frame before anything moves. | |
| theme | "dark" | "light""dark" Dark or light palette. | |
| speed | number1 Playback multiplier. | |
- startWaterfallStep
The opening column, with a label and value.
Default
DEFAULT_START - stepsWaterfallStep[]
Changes applied in order; negative values step down.
Default
DEFAULT_STEPS - totalLabelstring
Label on the final total column.
Default
"MRR" - titlestring
Small heading over the chart.
Default
"Net revenue, Q3" - format(value: number) => string
Turns a number into display text, such as $84k.
Default
defaultFormat - fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Instrument Sans" - grownumber
Frames each step bar takes to grow.
Default
15 - radiusnumber
Corner radius of the bars, in px at 720p.
Default
2 - accentstring
Accent color for the hero element.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- grainboolean
Film grain over the scene.
Default
true - scalenumber
Size of the foreground around the frame's center; the background stays put.
Default
1 - delaynumber
Frames to hold the first frame before anything moves.
Default
0 - theme"dark" | "light"
Dark or light palette.
Default
"dark" - speednumber
Playback multiplier.
Default
1