# Month up close chart

Month up close zooms into one month and gives every day a cell. The biggest day is lit, so a full month or one huge day reads straight away.

> Live preview: see the chart playing at https://bettertyped.github.io/react-wrapped/docs/charts/month/
>
> One month, every day of it. The lit day is the biggest.

## Installation

```bash
pnpm add @react-wrapped/charts @react-wrapped/core gsap
```

## Usage

A chart is data, not markup. Hand a scene an object with `type` set and the numbers to draw, and the scene draws it and plays its entrance on the video's timeline.

```tsx
import { chartScene } from "@react-wrapped/scenes";

export const scene = chartScene(
  {
    eyebrow: "Your year",
    title: ["Month up close."],
    lede: "One month, every day of it. The lit day is the biggest.",
    chart: {
      type: "month",
      lead: 2,
      days: [
        11, 14, 7, 1, 2, 12, 5, 7, 13, 7, 3, 4,
        // ...and 18 more
      ],
    },
  },
  { key: "month", label: "Month up close" },
);
```

## Props

| Prop | Type | What it does |
| --- | --- | --- |
| `type` | `"month"` | Picks this chart. |
| `lead` | `number` | How many cells are empty before the 1st, counting from Monday. |
| `days` | `readonly number[]` | One value per day of the month. |

## How it comes in

Every chart plays in the order it is read: what it is made of stands first, the numbers arrive with a direction, and the one thing the chart is about lands last with its pill. Nothing is on screen before its own entrance. See [how charts animate](https://bettertyped.github.io/react-wrapped/docs/charts/) for the shared rules.

## Related

- [Charts](https://bettertyped.github.io/react-wrapped/docs/charts/)
- [Bubbles chart](https://bettertyped.github.io/react-wrapped/docs/charts/bubbles/)
- [Radar chart](https://bettertyped.github.io/react-wrapped/docs/charts/radar/)
- [Funnel chart](https://bettertyped.github.io/react-wrapped/docs/charts/funnel/)
- [Transitions](https://bettertyped.github.io/react-wrapped/docs/transitions/)

Source: https://bettertyped.github.io/react-wrapped/docs/charts/month/
