circagraph
Sign inSign up

openchronology/timeline-app on GitHub

The OpenChronology repository on GitHub, mirrored by och-import-github: issues and pull requests as durations (ongoing while open), what happened to them as moments, plus releases, milestones, commits and branches. The Branches view shows the most recently active branches each in a track of its own.

Source: https://github.com/openchronology/timeline-app

3,131 moments · 2026-10-05 CE 20:21:49 UTC – 2026-11-16 CE 12:10:45 UTC · by @athan · @athan

#614 Every measure is charted on its own axis, in its own color

–

  • github
  • github/openchronology/timeline-app
  • github/openchronology/timeline-app#614
  • pull request
  • state:merged

On the national debt timeline, many measures showed one chart: measures were charted only through chart plugins, one plugin per measure. Now every measure is charted by itself, each on its own scale and axis. Built on #612, so it shows #612's commits until that merges. **Declarations** - `chart`: `"balance"`, `"rate"` or `"off"`. By default a measure with a balance is drawn as its balance (steps), and others as their totals (a rate). Only a non-default choice is stored, and `"balance"` needs a balance. - `color`: `#rrggbb`. By default, one of eight distinct categorical colours by the measure's place in the declarations. - Both are validated in `src/measures.ts` (`measureChart`, `measureColor`, `MEASURE_COLORS`). The desktop store (`native-store`) accepts the two keys too. **Measures dialog.** Each measure gets a **Chart** select (its balance, its totals, or not charted; balance only when it has one) and a **Chart color**. A colour is saved only when you pick one, so untouched declarations stay as they were. **Drawing** - A chart plugin for a measure still replaces that measure's own chart, in the plugin's colour or else the measure's. - With more than two charts, they're drawn as lines without fills. - Axis titles run vertically beside their values, so seven axes fit even with long measure names, and they stop above the balance readout. **Tests** - `test/measures.test.mjs`: defaults, stored choices, colours and invalid values. - `test/chart-axes-browser.mjs`: a third measure with no plugin is charted on its own axis in the second palette colour, three charts are drawn as lines, and switching it off in the dialog removes its chart and axis. - `cargo test` passes in `native-store`. - Docs: `docs/measures.md` and `docs/plugins.md`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/circagraph/timeline-app/pull/614

Related

Open #614 Every measure is charted on its own axis, in its own color in the timeline

#614 Every measure is charted on its own axis, in its own…