Radial Bars
Bars around a dial sweep up to a peak while the center figure counts up with a label. A free, MIT-licensed Remotion number animation.
$ pnpm dlx shadcn@latest add @remocn/radial-barsUsage
// src/Root.tsx
import { Composition } from "remotion";
import { RadialBars } from "@/components/remocn/radial-bars";
const RadialBarsScene = () => (
<RadialBars values={[8, 14, 22, 40, 90, 64, 30, 18]} value="2.4M" label="renders in the peak hour" />
);
export const RemotionRoot = () => (
<Composition
id="RadialBars"
component={RadialBarsScene}
durationInFrames={300}
fps={60}
width={1280}
height={720}
/>
);Bars grow around the dial in a sweep, the peak group is picked out with a bracket and a soft glow, and the center figure counts up under its label. Pass values (one bar each), highlight, value, label and ticks; it ships light and dark through theme.
Props16
| Prop | Type | Default |
|---|---|---|
| values | number[]DEFAULT_VALUES Bar heights around the dial, one entry per bar. | |
| highlight | number— Index of the bar at the center of the focused group. Defaults to the peak. | |
| value | string"2.4M" Center figure, as text. | |
| label | string"renders in the peak hour" Caption under the center figure. | |
| ticks | string[]["00:00", "06:00", "12:00", "18:00"] Labels spaced evenly around the dial. | |
| sweep | number54 Frames for the bars to sweep in around the dial. | |
| group | number5 Number of bars in the highlighted group. | |
| accent | string"#3B5BFD" Accent color for highlights and small marks. | |
| ink | string— Text color; overrides the theme ink. | |
| background | string— Background fill; pass "transparent" to drop it. | |
| fontFamily | string"Geist" Typeface for the copy. Load the font in your project first. | |
| 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. | |
| grain | booleantrue Film grain over the scene. | |
| theme | "dark" | "light""dark" Color theme, "dark" or "light". | |
| speed | number1 Playback speed multiplier for the whole timeline. | |
- valuesnumber[]
Bar heights around the dial, one entry per bar.
Default
DEFAULT_VALUES - highlightnumber
Index of the bar at the center of the focused group. Defaults to the peak.
- valuestring
Center figure, as text.
Default
"2.4M" - labelstring
Caption under the center figure.
Default
"renders in the peak hour" - ticksstring[]
Labels spaced evenly around the dial.
Default
["00:00", "06:00", "12:00", "18:00"] - sweepnumber
Frames for the bars to sweep in around the dial.
Default
54 - groupnumber
Number of bars in the highlighted group.
Default
5 - accentstring
Accent color for highlights and small marks.
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
"Geist" - 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 - grainboolean
Film grain over the scene.
Default
true - theme"dark" | "light"
Color theme, "dark" or "light".
Default
"dark" - speednumber
Playback speed multiplier for the whole timeline.
Default
1