# Step line

> Use a step line for values that hold flat and then jump, such as rates, prices and rules set by decision.

- Data type: Values over time (`time`)
- Free (MIT): install with `npx chartreuse add step-line`, or registry item `/r/step-line.json`
- Example: **The US federal minimum wage has been $7.25 since July 2009** (Federal minimum hourly wage for non-farm workers, US dollars (not adjusted for inflation), 1938 to 2026)
- How to read it: Each flat run is one legal rate; each rise is the day a new rate took effect.
- Phone: Not recommended for mobile (On a phone labels are hard to read or overlap (checked by eye)) · Video formats: none passed; closest 9:16

## Use it when
- the value is set by decision and holds until changed
- the length of each flat stretch matters
- a sloped line would invent values between changes

## Avoid it when
- the value changes continuously (use a plain line)
- there are hundreds of tiny changes
- you want to compare many series

## Fields (data.json)
- `steps[].date` (date): the day a new rate took effect
- `steps[].wage` (number, unit "USD per hour", format decimal): the rate, US dollars per hour
- `last` (date): the last month in the source, where the line ends

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 stretch to read the rate, the rise and how long it held
- Play steps through every change
- Motion: The line draws on from 1938 at an even pace, and each step's dot appears as the line reaches it.
- Sound: A soft pop on each stretch. 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": "step-line",
  "title": "The US federal minimum wage has been $7.25 since July 2009",
  "subtitle": "Federal minimum hourly wage for non-farm workers, US dollars (not adjusted for inflation), 1938 to 2026",
  "data": "/charts/step-line.data.json"
}
```

## Source
Federal Minimum Hourly Wage for Nonfarm Workers for the United States (FEDMINNFRWG), Federal Reserve Bank of St. Louis, FRED (US Department of Labor) (Public domain (US government data)), retrieved 2026-12-01: https://fred.stlouisfed.org/series/FEDMINNFRWG

Note: Nominal dollars; many states and cities set higher minimums.

Live: /charts/step-line · Manifest: /charts/step-line.json · Tags: step, rates, prices, policy, wages, history
