# Drag to zoom

> Use drag to zoom when a long, dense series hides detail: a small context strip shows everything, and the window you drag sets the main view.

- 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: **Arctic sea ice melts and refreezes every year, and hit its lowest point in September 2012** (Daily Arctic sea ice extent, million km², October 1978 to November 2026 (every other day))
- How to read it: The strip at the bottom is the whole record; the window in it sets the main chart above, where each wave is one year's melt and refreeze.
- Interactive: zoom
- Phone: Not recommended for mobile (6 labels overlap on a phone) · Video formats: 16:9 (best 16:9)

## Use it when
- thousands of points over a long time
- readers need both the big picture and the detail of any stretch
- seasons or events are too small to see at full length

## Avoid it when
- the series is short enough to show whole
- a printed or static view
- the reader shouldn't have to explore to see the point

## Fields (data.json)
- `start` (date): when the points start, at any grain: a year, month, day (as in the example) or ISO date-time; points count steps from here
- `record.low.extent` (number, unit "million km²", format decimal): optional: the record low (with record.low.date) from fuller data than the points, marked and offered as a preset; without it the lowest point is marked
- `record.high.extent` (number, unit "million km²", format decimal): optional: the record high, which only widens the value axis
- `points[][0]` (number, unit "days", format count): steps since start: days in the example, or the unit in hints.step (second, minute, hour, day, week, month, year)
- `points[][1]` (number, unit "million km²", format decimal): pairs of [steps since start, value] (sea ice extent in million km², every other day, in the example)

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
- drag across the strip to zoom; drag the window to pan
- presets jump to all years, 2012, or the last 12 months
- hover the main chart to read any day
- Motion: The view opens on the whole record, then the window glides in to the last ten years.
- Sound: A whoosh when a zoom settles. Quiet while it draws and while you brush; mute it from its card. (sound is off until the viewer turns it on)

## Example spec
```json
{
  "chart": "brush-zoom",
  "title": "Arctic sea ice melts and refreezes every year, and hit its lowest point in September 2012",
  "subtitle": "Daily Arctic sea ice extent, million km², October 1978 to November 2026 (every other day)",
  "data": "/charts/brush-zoom.data.json"
}
```

## Source
Sea Ice Index, version 4 (G02135), daily Northern Hemisphere extent, National Snow and Ice Data Center (NSIDC), with NOAA (Free to use with citation (NSIDC data policy)), retrieved 2026-12-01: https://nsidc.org/data/g02135/versions/4

Note: Before August 1987 the satellite measured every other day, and the chart keeps every other day throughout to stay light; the record low is from the full daily data. The extent counts ocean with at least 15% ice.

Live: /charts/brush-zoom · Manifest: /charts/brush-zoom.json · Tags: zoom, brush, focus and context, climate, Arctic, sea ice, daily
