Library

Animated Bar Chart

Animated Bar Chart

Horizontal or vertical bar chart with staggered entrance animations. Each bar grows from zero when scrolled into view.

chartbardataanimated

Installation

bash
# Copy animated-bar-chart.tsx to your project
cp components/ui/animated-bar-chart.tsx your-project/components/ui/animated-bar-chart.tsx

How to use

tsx
import { AnimatedBarChart } from "@/components/ui/animated-bar-chart";
tsx
<AnimatedBarChart
  data={[
    { label: "Jan", value: 65 },
    { label: "Feb", value: 85 },
  ]}
  orientation="vertical"
/>

Dependencies

Exports

AnimatedBarChart

File

components/ui/animated-bar-chart.tsx
Preview

Horizontal bars

React92
Next.js78
Vue64
Svelte42
Angular35

Vertical bars

48
72
56
89
Q1
Q2
Q3
Q4
Made with