Chronological friezes
One central axis for long spans — decades, centuries, millennia — with eras as bands and events above and below. Dates before the common era are negative years.
diagram(layout="frieze" start="-800" end="600" scale="century" lang="en")
card#rep.rep(start="-509" end="-27") Republic
card#emp.emp(start="-27" end="476") Empire
card#caesar.evt(date="-44-03-15") Death of Caesar
| Ides of March
card#fall.evt(date="476") Fall of the West.rep { --c: #2F6F8F; }
.emp { --c: #7B2D6B; }
.evt { --c: var(--ink); }Options
| Attribute | On | Meaning |
|---|---|---|
layout="frieze" | diagram | enables the mode |
start, end | diagram | bounds of the axis, in years; by default the extreme dates. end is
included: end="2017" stops on the 2018 graduation |
scale | diagram | year · decade · century (default) ·
millennium; graduations keep at least 90 px apart |
width | diagram | imposed width of the axis |
date | card | event: a card centred on its date, linked to the axis by a stem |
start, end | card | era: a band on the axis |
Dates
A year, negative before the common era, optionally followed by -MM or -MM-DD:
date="-44-03-15". There is no year 0: 1 BC is followed by AD 1, and 0 is an error.
As in timelines, end is included: end="476" runs to the end of 476. Two eras that share a boundary year
(-509 → -27, then -27 → 476) overlap by less than 2 pixels and touch, on one row.
Placement
- Eras stack in rows under the axis, longest first; a name too long for its band goes to its right.
- Events go up or down, to the side that needs the lowest level, alternating on a tie; the stem stays on the exact date.
- At century scale, centuries are labelled in Roman numerals, in the diagram's language.
- Arrows are allowed, for the rare cause-and-effect link.
Grouping events (preview)
diagram(layout="frieze" start="2014" end="2016" scale="year" width="800" lang="en")
card#lxc(date="2014-02") LXC
card#docker(date="2014-06") Docker
zone#orch Orchestrators
card#compose(date="2014-10") Docker Compose
card#k8s(date="2015-07") Kubernetes
card#swarm(date="2015-11") Docker SwarmA zone frames its events and their stems, with its title on top. Its events all go to one side of the axis (above, unless another zone already holds that side over the same dates); the other events of that period go to the other side. Zones do not nest in a frieze.
A larger example
See also
- Timelines and roadmaps for plans measured in days and months.
- Themes: the print theme for a handout.
