Chart Morph
A segmented ring unrolls into bars, tips into columns, then collapses into an area line chart ending on 46k. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/chart-morphUsage
// src/Root.tsx
import { Composition } from "remotion";
import { ChartMorph } from "@/components/remocn/chart-morph";
const ChartMorphScene = () => (
<ChartMorph
suffix="k"
caption="renders in May"
data={[
{ label: "Jan", value: 12 },
{ label: "Feb", value: 18 },
{ label: "Mar", value: 23 },
{ label: "Apr", value: 31 },
{ label: "May", value: 46 },
]}
/>
);
export const RemotionRoot = () => (
<Composition
id="ChartMorph"
component={ChartMorphScene}
durationInFrames={364}
fps={60}
width={1280}
height={720}
/>
);A segmented ring unrolls into a stacked bar, the segments tip upright into columns, and the columns collapse into a line chart with an area fill that ends on the last value. Pass data (label and value per point), suffix for the unit, and caption for the line under the value. Ships dark and light via theme.
Props14
| Prop | Type | Default |
|---|---|---|
| data | ChartMorphDatum[]DEFAULT_DATA Points to plot, in order; the last one is the hero value. | |
| suffix | string"k" Unit appended to the final value. | |
| caption | string— Line under the value; defaults to renders in the last label. | |
| stagger | number3 Frames between bars as they tip up out of the stack. | |
| 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. | |
| fontFamily | string"Manrope" Typeface for the copy. Load the font in your project first. | |
| fontWeight | number400 Weight of the final value. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Dark or light palette. | |
| 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. | |
| speed | number1 Playback multiplier. | |
- dataChartMorphDatum[]
Points to plot, in order; the last one is the hero value.
Default
DEFAULT_DATA - suffixstring
Unit appended to the final value.
Default
"k" - captionstring
Line under the value; defaults to renders in the last label.
- staggernumber
Frames between bars as they tip up out of the stack.
Default
3 - accentstring
Accent color for the hero element.
Default
"#3B5BFD" - inkstring
Text color; overrides the theme ink.
- backgroundstring
Background fill; pass "transparent" to drop it.
- fontFamilystring
Typeface for the copy. Load the font in your project first.
Default
"Manrope" - fontWeightnumber
Weight of the final value.
Default
400 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Dark or light palette.
Default
"dark" - 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 - speednumber
Playback multiplier.
Default
1