# Small multiples
URL: /diagrammatic/docs/small-multiples

Lay any form out as a grid of panels on one shared scale.

> For AI agents: a documentation index is available at [llms.txt](/llms.txt). Use `.md` for canonical markdown pages; `.mdx` is kept as a backwards-compatible alias on supported URL paths.

`SmallMultiples` lays any form out as a grid of panels. Give every panel the same domain (here `yMax`) so the panels compare. Panel titles are your markup.

```
import { Line, SmallMultiples } from "diagrammatic";

<SmallMultiples columns={2} title="Active seats by region">
  {regions.map((region) => (
    <div key={region.name}>
      <p>{region.name}</p>
      <Line data={region.data} yMax={52} width={300} aspect={2} />
    </div>
  ))}
</SmallMultiples>;
```

- columns

  2

- title

  Active seats by region, thousands

Americas

- title

  Americas

- data

  - 20
  - 24
  - 23
  - 29
  - 34
  - 38
  - 41
  - 47

- yMax

  52

- aspect

  2

Europe

- title

  Europe

- data

  - 18
  - 19
  - 22
  - 21
  - 24
  - 27
  - 26
  - 30

- yMax

  52

- aspect

  2

Asia Pacific

- title

  Asia Pacific

- data

  - 9
  - 12
  - 17
  - 22
  - 26
  - 33
  - 41
  - 52

- yMax

  52

- aspect

  2

Africa

- title

  Africa

- data

  - 2
  - 3
  - 3
  - 4
  - 6
  - 7
  - 9
  - 12

- yMax

  52

- aspect

  2

fig. 01 · SmallMultiples: one form per panel, on one shared scale