# Sparkline

A compact history trace with the underlying readings in its accessible name.

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

## Usage

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

export function Example() {
  return (
    <Sparkline
      label="Illustrative build duration in seconds"
      values={[4, 3, 3.6, 2.2, 2.8, 1.5, 1.2]}
    />
  );
}
```

## 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/sparkline
```

## Props

- `values`: `number[]`. Sequential readings; non-finite values are omitted.
- `label`: `string`. Describe the quantity and units.

## Accessibility

SVG has a unique title with the full readings. Use a table for large datasets; this is a compact trend.

## Motion

Static SVG, no background loop.
