Expand description
Charts drawn by the server as SVG (decision 466): bars (a task’s attempts, decision 467), lines over time, an “others” band, dashed
limits, axes, and a hover strip per point whose <title> gives every value there. No
JavaScript; the colours are the stylesheet’s series tokens (--series-1 to --series-8),
light and dark.
Structs§
- Bar
- One bar: its value (none: not read, drawn as a gap with its label), its class (how it
ended:
ok,failed,other), whether it is marked (killed for its memory), where it links, and its hover text. - Bars
- A bar chart’s content: bars side by side, oldest first, a dashed limit, a label under the first and the last.
- Line
- One line: a label, its colour slot (1 to 8), and its points (seconds, value), oldest first.
- Spec
- A chart’s content.
Enums§
- Unit
- What the values are.
Constants§
- HEIGHT
- Its drawing height.
- NARROW
- A chart’s in a panel: its text stays the same size.
- SERIES
- The series a chart draws at most; the rest go into the band (decision 465).
- WIDTH
- A chart’s drawing width (the SVG scales to its box).
Functions§
- bytes
nbytes as people read it:512 B,1.5 KiB,20.0 MiB.- draw
- A chart drawn: its SVG.
- draw_
bars - A bar chart drawn: its SVG.
- millis
msmilliseconds as people read it:850 ms,1.2 s.- sparkline
- A sparkline of
points(seconds, value) overfrom..to: a small line, no axes.
Type Aliases§
- Band
- A band: its label, and each point’s time, lowest and highest.