# Halftone Area Chart — Skecher UI

An area chart drawn as a halftone, where scrubbing lights a column of dots and stirs the area into ASCII strokes.

## Install

```bash
bunx --bun shadcn@latest add CoDesign-Spa27/skecher-ui/halftone-area-chart
```

## Dependencies

- motion
- @number-flow/react

## Implementation guidance

- No additional implementation constraints are documented.

## Usage

```tsx
import type { Format } from "@number-flow/react";

import { HalftoneAreaChart } from "@/components/ui/halftone-area-chart";

const revenue = [
  { label: "Jan", value: 32400 },
  { label: "Feb", value: 21700 },
  { label: "Mar", value: 38900 },
  { label: "Apr", value: 27300 },
  { label: "May", value: 44800 },
  { label: "Jun", value: 19600 },
];

const currency: Format = {
  style: "currency",
  currency: "USD",
  maximumFractionDigits: 0,
};

export default function RevenueChart() {
  return (
    <HalftoneAreaChart
      data={revenue}
      format={currency}
      label="Monthly revenue"
      seriesName="Revenue"
    />
  );
}
```

## Source files

- components/ui-components/halftone-area-chart.tsx — Halftone area chart with scrubbing and an ASCII flow wake

## Canonical resources

- Documentation: https://skecher-ui.com/docs/halftone-area-chart
- Registry item with complete source: https://skecher-ui.com/r/halftone-area-chart.json
- Component AI context: https://skecher-ui.com/llms/halftone-area-chart
