Compositions
Core Primitives
Transitions
Typography
Customize
16
1
6
Installation
$ pnpm dlx shadcn@latest add @framecn/animated-bar-chart
Usage
import { AnimatedBarChart } from "@/components/framecn/animated-bar-chart";<AnimatedBarChart />API Reference
AnimatedBarChart
| Prop | Type | Default |
|---|---|---|
data | number[] | [35, 60, 45, 80, 55, 70, 90, 65] |
labels | string[] | - |
width | number | 1000 |
height | number | 500 |
barColor | string | "#0ea5e9" |
background | string | "#0a0a0a" |
gap | number | 16 |
staggerFrames | number | 6 |
speed | number | 1 |
fps | number | 30 |
durationInFrames | number | 90 |
className | string | - |
Notes
Spring-based bar animation
Bars spring up from the baseline with deterministic stagger. Great for dashboard or analytics visualizations.