Skip to content

Legend

The legend under a chart with six pens

The legend sits under the time axis, across the plot. It holds no values and no time: values are in the x-trace boxes (and, on a phone, in the readout of a pinned trace), the time is the trace's badge on the time axis. Its size depends only on the pens and the width, so pointing at the chart or live data never moves it.

Labels. A tag pen is named by its tag path, not its tooltip: real tags are often called PV, SP or OUT. The folders every pen shares are said once, at the left of the legend's head ([default]Plant/Area2/); each pen shows the rest (Line1/Mixer/TIC101/PV). The prefix always leaves a pen its tag name and folder. Where a label does not fit, whole folders are left out from the start of the path, one at a time, each run written … (Line1/…/TIC101/PV): first those that need not stay, then, in a very narrow legend, the tag's folder and the folder that tells two pens apart (Line1 and Line2 above) too. The tag name is never cut: when even …/Temperature does not fit (a chart about 140 px wide beside a sidebar), the label takes more lines, its unit after it, broken after a / (Line1/ over Temperature °C) and inside the name only when the name alone is wider than the legend; the row grows to show every line. A name set on the chart takes more lines the same way. (The x-trace boxes keep their fixed width and cut as before.) Pens from more than one tag provider have the provider as their first folder.

The same label is used in the x-trace boxes, the step lanes' headers, the Pens tab (with the whole path under it), the phone readout, the alarm list, notes and calculated pens, which name their inputs by their shortest label (derivative(Line1/…/TIC101/PV, 3600)), also under a calculated pen with a name of its own (Calculated: derivative(Line1/Flow)), never by a tag's tooltip. A name set on the chart is used as typed; a bound pen is named by its binding's name. The tag's tooltip is in the legend item's tooltip and the Tags tab. CSV and Excel columns carry the whole tag path (or the name set on the chart).

Layout. Pens are in the Pens tab's order, step lanes last, and a hidden pen keeps its place. Columns are as wide as the widest label needs (150 to 260 px), at least two from 340 px wide, but never so narrow that a label would lose more than whole folders: then there are fewer (one on a narrow phone). The legend shows up to three rows (two below a component height of 560 px, one below 340 px); with more pens the last cell says +N more, which opens every pen in place (up to half the component's height, then it scrolls) and folds back with Show fewer.

Items. A swatch drawn as the pen is (a line in its dash, an area, bars, a dot, or a lane's state colours), ƒ for a calculated pen and a chain for a bound one, the label, the unit, and for bars per period what a bar is (sum per hour, shortened to sum/h in a narrow column). Pointing at an item brings that pen forward on the chart and fades the others (with the mouse, or moving to it with the arrow keys; a tap does not, and the pointer on the plot or an editor closing ends it). Click to hide or show a pen; Alt-click to show only that pen, and again to show every pen. A pen with an error has a ⚠ (the tooltip says what), a pen with no data in the range a hollow swatch. The arrow keys move through the items, Space or Enter toggles one.

Head. The shared folders on the left; comparisons ("1 day earlier", "From 20 Nov 08:00"), the alarm count and a notes error on the right. Comparisons that do not fit fold into "+N", whose tooltip names them; a click or tap on it lists every comparison with its dash and start (a sheet at the bottom on a phone). Pointing at a comparison (or moving to it with Tab) brings its curves and x-trace boxes forward and fades the rest, as pointing at a pen does; a click or tap, on its key or in that list, keeps it so until it is clicked again.

Dashboard tiles (display: "clean"): the same grid with static items, two rows (one in a tile under 340 px high), no prefix (it is in each tooltip), and "+N more" opens every pen in a popover over the tile, which keeps its size. Step lanes are not listed: each lane's header on the plot names it and carries its colour key. A tile of only step lanes has no legend.

Phone (a component under 600 px wide): two columns of rows a finger can hit (one when two would cut a label), with no pencils: the room is the labels'. "+N more" opens a Pens sheet with every pen, its whole path, a checkbox and a pencil for its settings. Tap the chart to pin a trace: its values replace the legend (the time, ‹ › between pinned traces, × to remove it), each pen's label with its value in its unit and format. Each value is shown whole, the label giving way to it; under a bar's value a second line says what the bar is, its period and whether the period reaches beyond the view (what a desktop's tooltip says). Each earlier period a pen is compared with has a row under the pen's, in its dash: the time its value is from ("Fri 27 Nov 13:27") and the value, as the desktop's x-trace box says them. The readout takes the legend's room (its rows scroll; "2 more readings ↓" and "3 more readings ↑" say how many are below and above until they are scrolled to, and a new trace opens at its first reading), so the plot keeps its size. Removing the last trace brings the legend back. The toolbar's Plots and View buttons say their word beside the icon.


Copied from the section "Legend" of the README when the site is built. Source: README.md.