# Data quilt

> Use a data quilt to lay out a long monthly or daily record as a patterned cloth, one patch per period, so cycles show up as a rhythm in the weave.

- Data type: Values over time (`time`)
- Pro · not released yet: its code is not available; try it on its page, or use a free chart of the same data type (`time`)
- Example: **Sunspots swell and fade every 11 years, and 1957 was the busiest year since 1950** (Monthly mean total sunspot number, 1950–2025; one patch per year, one stitch per month)
- How to read it: Each patch is a year, set in rows by decade; its twelve stitches are the months, darker when the Sun had more spots.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: none passed; closest 9:16

## Use it when
- a long regular record (months, days) with a cycle in it
- a decorative but honest view for a cover or a poster
- decades line up naturally into rows

## Avoid it when
- readers need to compare exact values
- the series has no rhythm or pattern to find
- fewer than about 10 periods

## Fields (data.json)
- `years[].year` (year): calendar year
- `years[].months` (number, unit "sunspots", format decimal): one value per period of the year, in order, one stitch each (twelve monthly mean total sunspot numbers, January to December, in the example; any count works, named by hints.periods, else month names for twelve, else 1 to N)

Units are the example's: with your own data, set each number field's `unit` and `format` (percent, count, decimal, currency, compact) in the meta you pass to mount, or `chartreuse render --unit field=text --format field=count`. Scales and labels follow your data.

## Interactions, motion, sound
- hover or tap a patch to read the year's average and busiest month
- Listen to the cycle plays every year as a note
- Motion: Patches are stitched in one by one from 1950, popping into place with a small overshoot.
- Sound: A pop on hover, pitched by sunspots; a page riffle when Play reaches the last year; Listen plays the whole record. Quiet while the quilt is sewn and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "data-quilt",
  "title": "Sunspots swell and fade every 11 years, and 1957 was the busiest year since 1950",
  "subtitle": "Monthly mean total sunspot number, 1950–2025; one patch per year, one stitch per month",
  "data": "/charts/data-quilt.data.json"
}
```

## Source
Monthly mean total sunspot number (SN v2.0), SILSO, World Data Center, Royal Observatory of Belgium, Brussels (CC BY-NC 4.0), retrieved 2026-12-01: https://www.sidc.be/SILSO/datafiles

Note: Thread depth follows the sunspot number on a gently bent scale (power 0.75), so quiet months stay just visible. The most recent months are provisional.

Inspired by: [Data-driven textiles and quilts](https://en.wikipedia.org/wiki/Data_physicalization), various (linked, not copied).

Live: /charts/data-quilt · Manifest: /charts/data-quilt.json · Tags: textile, quilt, calendar, heatmap, data art, space, Sun, cycles
