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

#435 Background chart: the view's moments as a smooth curve behind the timeline (#289)

–

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

Closes #289. A new official plugin, **Background chart** (`background-chart`). When it's enabled, the timeline's background shows how many moments lie across the view as a smooth curve, drawn as SVG paths. - **Shape:** - The curve rises from the foot of the stage. Its highest point, a fifth of the way down from the top, is where the view's moments are most numerous. - It is relative to the view, so it is redrawn as you pan and zoom. - Each moment adds a bell-shaped rise about twice the grouping distance (**Group within**) wide, at least 24 px. - The points are joined by Catmull-Rom curves, written as cubic Béziers, that never dip below the base. - **Edges:** near the view's edges the curve counts only what lies inside, so moments spread evenly chart level to the edges instead of falling away. - **Cost:** it reads the view's summaries (`frame.groups`), which the browser, SQLite and PostgreSQL already compute. No moment is read again and the server sends nothing new. - **Look:** - A translucent area under a thin line. - It sits above the timeline's and durations' backgrounds, and beneath the axis, bands, arcs and markers. - It takes the moment marker color, so it suits the light and dark themes and the timeline theme. A **Chart color** setting in the Plugins dialog overrides it. - **Manifest:** a new `chart: { kind: "moments", setting? }` capability. Its `setting` must name one of the plugin's own `color` settings, and the last enabled plugin that draws a chart wins. Charts per category (info, warning and error logs beside the total) need the summaries to count by category in all three backends. That is filed as #434. **Tests** - `npm test`: 430 pass. The new unit test covers the manifest, the settings, the curve's relative heights, smoothing and edges, and the paths. The catalogue's page order is updated. - A new browser check, `test/background-chart-browser.mjs`, run from `test/browser.mjs`, covers: - the chart covers the stage, beneath the markers; - it is highest over the cluster; - it follows the view; - its color is set in the Plugins dialog; - it goes when the plugin is disabled. It passed on its own in the Playwright 1.58.2 container. I didn't run the full browser suite locally. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_011fFY8eruEi1xAkkMBni13B https://github.com/openchronology/timeline-app/pull/435

Related

Open #435 Background chart: the view's moments as a smooth curve behind the timeline (#289) in the timeline

#435 Background chart: the view's moments as a smooth…