ReportspaceReportspace
Documentation
Back
  • About
  • How we test
  • Blog
  • Contact
  • Terms of Service
  • Privacy Policy
  • Concepts
    • Fixed layout and capacity
    • Sources and field types
    • Slot bindings
    • Rules and band sets
    • Badge presets and scales
    • Brand profiles
    • Zapier and the API
    • Runs, snapshots and determinism
    • PDF import
    • The assistant
  • Walkthroughs
    • From a PDF to a bound report
    • From a Jotform form to a report
    • Rebrand a template for another client
    • Change a cutoff everywhere
  • Reference
    • Elements
      • Text
      • Rectangle
      • Ellipse
      • Line
      • Polygon
      • Image
      • PDF Page
      • Group
      • Bar Chart
      • Line Chart
      • Donut Chart
      • Arc / Radial Progress
      • KPI
      • Radial Chart
      • Linear Scale
      • Scatter Chart
      • Dots
      • Progress Bar
      • Table
      • Status Badge
    • Visual channels
    • Condition operators
    • Rule kinds
    • Badge presets and scales
    • Built-in band sets
    • Brand roles
    • Design operations
    • Limits

Rules and band sets

Looks that follow the data: conditional rules on a channel, 'this value' rules, and band sets that keep one list of cutoffs for many properties.

Every visual property an element exposes — a shape's fill, a text's colour or size, a badge's preset, a table cell's background — is a channel, and every channel carries one rule. Most rules are fixed values you never think about. The interesting ones decide per record.

A visual rule is set per element channel (table columns add the column). Rule kinds: direct (one fixed value), brand (the channel follows a brand role), conditional (ordered rules with conditions on fields; the first match wins; otherwise the fallback). Older forms — threshold, range-color, value-enum — are conditional rules a single conditional rule can express.

A conditional rule: basedOn names the field the rules read (optional); each rule has a combinator (all or any), conditions { fieldId, operator, value } and an output; fallback is the output when no rule matches. A condition's field may be @this: the value the element itself shows. The output's type is the channel's: a colour for a fill or text colour, a preset id for a badge preset, a number for a font size, text for a text's value. Operators and the types they fit: rs_catalog, section operators.

{ "kind": "conditional", "version": 1,
  "basedOn": { "fieldId": "<field id>" },
  "rules": [
    { "combinator": "all",
      "conditions": [ { "fieldId": "<field id>", "operator": "is_below", "value": 25 } ],
      "output": "#D32F2F" },
    { "combinator": "all",
      "conditions": [ { "fieldId": "<field id>", "operator": "is_between", "value": { "min": 25, "max": 50 } } ],
      "output": "#F57C00" }
  ],
  "fallback": "#2E7D32" }

Shared cutoffs belong in a band set, not in repeated conditional rules: create the set (your own bands, or from a built-in), then link each channel to it with the field it should read. A linked channel's rule is written from the bands and kept in step; editing the set rewrites every follower. A channel that follows a band set refuses a hand-written rule unless it is detached first; a link is never written by hand.

Conditional rules

A conditional rule is an ordered list: if the score is below 25, red; if below 50, amber; otherwise green. Each line has one or more conditions (a field, an operator, a value — see the operators) joined by all or any, and an output of the channel's type. The first line whose conditions hold wins; when none does, the fallback applies. An empty value matches "is empty" and otherwise falls to the fallback.

Conditions usually read the field the element shows, but they may read any field: a client's name can turn gold when their tier is "VIP". A rule can be based on one field so every line reads it without repeating it.

"This value"

When several elements show different fields but should colour the same way — eight test scores, each red below 25 — write the rule once against this value (@this): the value the element itself shows. Copy the styling to the other elements and each one reads its own field. The Properties rail offers "This value" wherever a rule picks a field.

Band sets

A band set is one named list of cutoffs with a look per band: a colour, a text colour, a label, a badge preset, and a look for records with no value. It has a basis (number or percent) and, for percent, remembers how the fields store percentages (fraction or whole).

Link a channel to a band set and say which field it reads; the channel's rule is written from the bands. Link eight circles, two badges and a table column to the same set, then change one cutoff once — every follower updates. The reference lists the built-in band sets (percentile quartiles and the like) you can copy in and edit.

A linked rule is read-only in the panel until you detach it; detaching leaves the rule as it was written and stops it following the set.

Where rules live

  • On an element's channel: the Properties rail's Appearance section shows each channel with its rule; "Use conditional styling" opens the rule editor.
  • On a text's content: a conditional rule on the content itself ("Pass" or "Fail" from a number).
  • On a table column: per cell, read from the row.
  • On a split circle, arc or linear scale: the band set drives the fill of each segment or band.

Status colours (red, amber, green; pass, fail) are rules or band sets, never brand roles: a warning looks like a warning for every client.

In the Studio

  • Rules: the Appearance section of the Properties rail; "Use conditional styling".
  • Band sets: the Band sets panel; link from a channel's rule menu; edit the set to move every follower.
  • Copy styling between elements: Ctrl+Alt+C / Ctrl+Alt+V.