# Spirograph

> Use a spirograph to draw a cyclical series as looping petals, one loop per period, so strong and weak cycles look like different flowers.

- 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: **The Sun's current cycle has already outshone the last one, the weakest of six since 1964** (Monthly mean total sunspot number, solar cycles 20 to 25 (October 1964 to today); one petal per year of the cycle)
- How to read it: The pen circles once per solar cycle and makes one loop a year; the more sunspots that month, the wider the loop.
- Phone: Adapts to mobile (Draws its own phone layout below 520px) · Video formats: 16:9 (best 16:9)

## Use it when
- a series repeats in cycles and the shape of each cycle matters
- you want a memorable, decorative view with real data in it
- comparing a handful of cycles at a glance

## Avoid it when
- readers need exact values or dates
- the series has no natural period
- more than about six cycles (the flowers blur together)

## Fields (data.json)
- `cycle` (id): the cycle's name or number, after hints.cycleWord (the solar cycle number in the example: "Cycle 20")
- `start` (date): when the cycle began, at any grain: a year, month (YYYY-MM, the sunspot minimum in the example), day or ISO date-time; its grain is the step between values unless hints.step names one (year, month, day, hour, minute)
- `months` (number, unit "sunspots", format decimal): one value per step of the cycle, in order (the monthly mean total sunspot number in the example); the pen turns once per hints.turn steps (132 months) and loops once per hints.loop steps (12, a year)

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 along a flower to read a month
- Overlay stacks the six flowers on one centre
- Motion: The pens trace all six flowers at once, month by month, like a spirograph turning.
- Sound: A pop on hover. Quiet while it draws and between steps; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "spirograph",
  "title": "The Sun's current cycle has already outshone the last one, the weakest of six since 1964",
  "subtitle": "Monthly mean total sunspot number, solar cycles 20 to 25 (October 1964 to today); one petal per year of the cycle",
  "data": "/charts/spirograph.data.json"
}
```

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

Note: Cycle start months are SILSO's smoothed minima; cycle 25 is still running, so its flower is not closed yet.

Inspired by: [Spirograph (the drawing toy)](https://en.wikipedia.org/wiki/Spirograph), Denys Fisher (linked, not copied).

Live: /charts/spirograph · Manifest: /charts/spirograph.json · Tags: spirograph, cycles, data art, petals, sun, sunspots, space, generative
