# BarChart

Readable, labelled comparisons without a charting dependency.

- Family: Data, imported from `mizu-ui` or `mizu-ui/data`
- Docs: https://mizu.user64bit.world/components/bar-chart
- Source: https://github.com/0xuser64bit/mizu/blob/main/packages/mizu/src/data/Charts.tsx

## Usage

```tsx
import { BarChart } from "mizu-ui";

export function Example() {
  return (
    <BarChart
      label="Example counts by family"
      data={[
        { label: "Forms", value: 16 },
        { label: "Status", value: 12 },
        { label: "Motion", value: 9 },
      ]}
    />
  );
}
```

## Copy it with the shadcn CLI

```sh
npx shadcn@latest init 0xuser64bit/mizu/preset # once, where there is no components.json
npx shadcn@latest add 0xuser64bit/mizu/bar-chart
```

## Props

- `data`: `ChartPoint[]`. Labels and numeric readings.
- `format`: `(value: number) => string`. Visible units.
- `label`: `string`. Figure caption.

## Accessibility

All labels and readings are real list text. Negative values keep their sign and use a distinct treatment; bars compare absolute magnitudes.

## Motion

CSS transitions explain state changes. Reduced motion removes travel.
