# Galton Stack
URL: https://remocn.dev/docs/numbers/galton-stack

Dots fall through a Galton board into a bell curve, marked at 95%

- Install: `npx shadcn@latest add @remocn/galton-stack`
- Vibe: data
- Natural length: 137f @ 30fps

## Installation

```bash
npx shadcn@latest add @remocn/galton-stack
```

## Usage

```tsx
// src/Root.tsx
import { Composition } from "remotion";
import { GaltonStack } from "@/components/remocn/galton-stack";

const GaltonStackScene = () => (
  <GaltonStack count={260} label="95% of renders under 2s" markerLabel="2s" />
);

export const RemotionRoot = () => (
  <Composition
    id="GaltonStack"
    component={GaltonStackScene}
    durationInFrames={175}
    fps={30}
    width={1280}
    height={720}
  />
);
```

Dots fall through a field of pegs into bins and stack into a bell curve, then the camera settles on a marker line and the label lands. Pass `count` of dots, `marker` (0 to 1 across the bins) and its `markerLabel`, plus a `label` for the claim. Ships dark and light via `theme`.

## Props

| Prop | Type | Default | Description |
|---|---|---|---|
| `count` | `number` | `260` | Number of falling dots, from 20 to 600. |
| `marker` | `number` | `0.733` | Marker position across the bins, from 0 to 1. |
| `label` | `string` | `"95% of renders under 2s"` | Claim shown with the marker. |
| `markerLabel` | `string` | `"2s"` | Short tag on the marker line. |
| `accent` | `string` | `"#3B5BFD"` | Accent color for the hero element. |
| `theme` | `"dark" \| "light"` | `"dark"` | Dark or light palette. |
| `speed` | `number` | `1` | Playback multiplier. |

## Use when
- A reliability or speed claim, such as 95% of renders under 2s, backed by a visible bell curve.
- A beat that explains a distribution playfully, with dots falling through pegs.
- A stat scene where the proof is the pile-up of many individual samples.

## Don't use when
- You want two sample groups compared on one axis — use `beeswarm`.
- You want a smooth before-and-after curve — use `distribution-shift`.
- You only need the stat — use `compact-stat`.