Profile and enum axes
How to declare an axis of labels, the rules its values follow, and how it appears in the Para-Sieve.
Last updated · 4 min read · Docs / Datasets
Declaring an enum axis
An enum axis gives every candidate one label from a small, fixed set — a massing option, a wall assembly, a window construction. Declare it in the reserved header rows of its column with the Type STRING in row 3 and the Unit enum in row 4:
Massing Option,External Wall Assembly,TEDI
in,in,out
STRING,STRING,NUMBER
enum,enum,integer
E1,[R05] Curtain Wall System,33.3
E2,[R10] Steel Stud Wall,31.9You never list the allowed labels anywhere: the set is whatever distinct values the axis holds.
Rules for enum values
- An axis may hold at most 255 distinct values. The first value past that limit is rejected.
- No value may be empty or only whitespace.
- Spacing is tidied before values are compared: leading and trailing spaces are removed, and every run of spaces, tabs, line breaks or non-breaking spaces becomes a single space. Invisible characters such as zero-width spaces and soft hyphens are dropped.
- Apart from spacing, values are compared exactly.
Lowandloware two different labels. - Values that read as numbers, such as
1or2026, are kept as labels. If the axis is really a measurement, declare it as aNUMBERinstead so it gets a range axis. - Labels are numbered in the order they first appear in the file, and the axis lists them in that order.
Enum axes in the Para-Sieve
Instead of a range brush, an enum axis shows one toggle per value. All toggles start on, so every candidate passes until you turn a value off. A candidate passes the axis when its value's toggle is on.
With a pointer
- Click
- Turns that value on or off.
- Alt/Option-click
- Shows only that value. Alt/Option-click it again to turn every value back on.
- Shift-click
- Toggles every value between the last one you clicked and this one.
- Drag across toggles
- The first toggle flips, and every toggle you pass over takes its new state, so one stroke turns a run of values on or off.
With the keyboard
- Press Tab to move focus into the axis's toggle group.
- Use ← and → to move between values, or Home and End to jump to the first or last.
- Press Space to turn the focused value on or off.
- Press Enter to show only the focused value.
- Press Ctrl/⌘+A to turn every value back on.
Crowded axes
As an axis gets crowded, labels are first shortened with an ellipsis, then rotated, and once there is no room left they are hidden behind small markers. Hover or focus a toggle to see its full label as a hint, so you can always tell which value it belongs to. Screen readers always announce the full label.
Profile axes
A profile axis, declared with the graph unit, encodes a profile such as a daily heating schedule as breakpoints. Profile axes are accepted in the file format, but showing them in the viewer is coming in a later release. This section will describe how to encode them once it lands.