# Animated Bar Chart

Bars spring up from the baseline with deterministic stagger.

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown variants are available by appending `.md` to any URL or sending an `Accept: text/markdown` header. An agent skill is available at [/.well-known/agent-skills/site-skill.md](/.well-known/agent-skills/site-skill.md).

## Installation

<TabsTrigger value="cli">Command</TabsTrigger>
<TabsTrigger value="manual">Manual</TabsTrigger>

```bash
npx shadcn@latest add @framecn/animated-bar-chart
```

<Step>Copy and paste the following code into your project.</Step>

<Step>Update the import paths to match your project setup.</Step>

## Usage

```tsx
import { AnimatedBarChart } from "@/components/framecn/animated-bar-chart";
```

```tsx
<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

  Bars spring up from the baseline with deterministic stagger. Great for
  dashboard or analytics visualizations.