Management table reference
Contents: Use cases, Chart IDs, Minimal spec, Data, Options, Annotations, A wide table at the width it is shown at, Statements: signs, subtotals, results and drivers, Group grounds, folds, frames and fitted formats, Value bands and a pinned head, Sizing, Fixtures.
Consulting-grade table: hierarchy with honest totals (derive/validate/source), typed calc columns, status chips, composite cells — self-verifying via computed-cell records. Type table. Aliases: tbl.
Use cases
- Table with totals
- P&L with variances
- Ranked list with status chips
Chart IDs
table.steering: fixturesteering-monthlytable.benchmark: fixturebenchmark-competitorstable.status: fixturestatus-review-relaxedtable.receipts: fixturereceipts-changelogtable.hierarchy: fixturetable-scorecard
Minimal spec
{
"type": "table",
"data": {
"columns": [
{ "id": "name", "kind": "rowLabel", "label": "Region" },
{ "id": "revenue", "kind": "value", "label": "Revenue ($k)" }
],
"rows": [
{ "id": "north", "label": "North", "cells": { "revenue": 120 } },
{ "id": "south", "label": "South", "cells": { "revenue": 90 } }
]
},
"options": { "title": "North contributes $30k more revenue than South", "source": "Illustrative data" }
}Data
| Path | Type | Required | Meaning |
|---|---|---|---|
| columnGroups | array | Two-row headers. Members must exist, belong to at most one group, and be contiguous in columns[] order. | |
| columnGroups[].id | string | yes | Column-group id. |
| columnGroups[].label | string | yes | Group heading. |
| columnGroups[].columns | array | yes | Contiguous member columns. |
| columnGroups[].band | boolean | Give this group a banded ground, the way the full-year block of a management report is set off from the months beside it. | |
| columnGroups[].note | string | Heading qualifier after ·. Lowercase and untracked: the period the block covers, such as Jul 1-15 or full month. | |
| columnGroups[].spacer | number | Empty px track before the group. The metric blocks of a cohort grid stand 16 px apart. It draws no cell, takes no hover, and replaces the divider hairline this group would otherwise open with. | |
| columnGroups[].heading | boolean | Draw it. Default true; false keeps the membership (hover series, previous: true calcs), the label as the hover noun, the band, the spacer and the divider, and draws no heading. Where no group draws one, the head loses its group row. | |
| columnGroups[].hoverSeries | string | Hover series. 'shown' (default) draws the group's members on screen in the sparkline hover card; 'all' draws every member in columns[] order, those a column toggle hides included, so a block can show history it does not draw. A hidden member stays out of everything else the table draws, measures and counts. One of 'shown', 'all'. | |
| columnToggles | array | Column toggle groups. Every member must exist, belong to one toggle, and stay inside one columnGroup. | |
| columnToggles[].id | string | yes | Nonempty reference id. |
| columnToggles[].label | string | yes | Column-toggle label. |
| columnToggles[].columns | array | yes | Columns toggled within one header group. |
| columnToggles[].defaultVisible | boolean | Visible before options.columnVisibility; defaults false. | |
| columns | array | yes | Display order; exactly one rowLabel column. Width, alignment, label and order of a column are authored here, so table takes no columnOverrides or columnOrder. |
| columns[].id (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | string | yes | Nonempty reference id. |
| columns[].label (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | string | Visible name; defaults to id. | |
| columns[].subLabel (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | string | Second header line. At the micro step in muted ink: a weekday under a date, an ISO week under a week start. Primary labels keep one baseline. | |
| columns[].width (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | number | Width in px. React keeps it and scrolls. SVG narrows authored tracks only when the fixed frame needs it, with table-overflow and a wider-size fix. Value and computed tracks widen for figures, and a row-label track for its labels up to 180 px (table-column-widened). Other content may cut (table-column-clipped); remove width for automatic content sizing. | |
| columns[].align (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | string | Cell alignment. Numeric left alignment is accepted but linted. One of 'left', 'right', 'center'. | |
| columns[].headAlign (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | string | Head alignment; defaults to align. One of 'left', 'right', 'center'. | |
| columns[].emphasis (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | string | Header and cell emphasis. 'strong' sets the header and its cells to the emphasis weight (700 by default), 'muted' paints them in the muted ink. A strong column is measured in the bold weight; muted is paint only. One of 'strong', 'muted'. | |
| columns[].band (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | boolean | Column band ground. Neighboring banded columns read as one block and the first of the run takes the left hairline, so a block inside a column group needs no group of its own. Paint only. | |
| columns[].noteLine (columns[] branch 1 | columns[] branch 2 | columns[] branch 3 | columns[] branch 4 | columns[] branch 5 | columns[] branch 6 | columns[] branch 7) | boolean | Notes below figures. They use the inline step in muted ink. Default false keeps the note inline after the figure, where a 90 px block track cuts it off; a steering block column says sum under its year-to-date figure. The note takes the first line slot whose change line holds no value in that cell, and where every line holds one, or the row prints none, the row grows by one inline line. | |
| columns[].kind (columns[] branch 1) | string | yes | Kind. One of 'rowLabel'. |
| columns[].maxWidth (columns[] branch 1) | number | Label width cap in px. Includes indent and affix; explicit width wins. | |
| columns[].maxTextWidth (columns[] branch 1) | number | Caps how much the label text adds to the column width, in px. The indent, the unit affix and the collapsed hint come on top of it. It is not a hard cap: when the header or another row makes the column wider, labels use that room. Ignored when width is set; maxWidth still caps the whole track. | |
| columns[].kind (columns[] branch 2) | string | yes | Kind. One of 'value'. |
| columns[].format (columns[] branch 2 | columns[] branch 3) | string | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor. The example's scale word and decimals hold for every value, totals included: '$1.2M' prints 4 as $0.0M and warns format-hides-values with a finer example. A German or French chart prints the scale in its own words (Mrd., Bio.; Md, Bn). Axis ticks take their digits from their spacing, and a statistic such as a mean takes up to one decimal more. A unit alone ('$M', '€bn', '%', 'x') states the prefix, the suffix and any scale word: the default number rule fills the decimals, and the scale words where the unit names none ('$M' prints 15,060,000 and 14,800,000 as $15.06M and $14.80M). A table column moves the unit into its head and picks the cell precision from the data. Spreadsheet number codes translate to examples with warning format-spreadsheet-code; percent values stay percent points. Direction glyphs (▲/▼, ↑/↓) at the start or end of the example carry a sign. A glyph inside the prefix or unit stays literal text. ± carries a sign. A trailing minus marks negatives, '1st' prints English ordinals, and '1.2E+06' prints scientific notation. With no digit, one run of 1–15 @ fixes significant figures: '$@@@M' prints 4,270,000 as $4.27M. A table holds an authored magnitude: under '$1.2k', 2,496,000 prints as 2,496.0 thousand, not as $2.5M. Percent values are authored in POINTS: 6.2 with format '1.2%' renders '6.2%'. A difference of two percent levels uses 'pp', not '%'. A separator followed by exactly three digits after a nonzero integer part is a thousands mark: '1.000' groups thousands with a dot and prints decimals with a comma; write '0.000' for three decimals. The format's unit, $M for '$1.2m', prints once beside subtitle.measure when every value column shares it; without a measure, or with mixed units, each value head carries it, as 'Q1 ($M)'. unitShown true drops it from the heads too. | |
| columns[].scenario (columns[] branch 2) | string | Header scenario: AC, PY, PL or FC. LY means PY (last year); codes accept any case. One of 'AC', 'PY', 'PL', 'FC'. | |
| columns[].polarity (columns[] branch 2 | columns[] branch 3) | string | Which sign is favorable. Judgment tones and directional encodings read it. One of 'higherIsBetter', 'lowerIsBetter'. | |
| columns[].materiality (columns[] branch 2 | columns[] branch 3) | object | Mute tones where the printed figure is below this threshold; keep values visible. | |
| columns[].materiality.pct (columns[] branch 2 | columns[] branch 3) | number | Percent-column threshold in points. | |
| columns[].materiality.abs (columns[] branch 2 | columns[] branch 3) | number | Other numeric threshold in source units. | |
| columns[].aggregate (columns[] branch 2) | string | Parent-row aggregation. Default 'sum' over additive children; 'none' where the column format is a percentage, percentage points or a multiple, or the summand rows carry different units (decimals do not count), since those do not add. An explicit 'sum' there warns aggregate-non-additive. One of 'sum', 'none', 'source'. | |
| columns[].nulls (columns[] branch 2) | string | Default 'propagate'. A missing child then makes the parent '—', with no silent partial sums; 'skip' sums the present values and auto-footnotes 'partial'. One of 'propagate', 'skip'. | |
| columns[].percentScale (columns[] branch 2) | string | Values already in points; percent-scale-suspect stays quiet. One of 'points'. | |
| columns[].kind (columns[] branch 3) | string | yes | Kind. One of 'computed'. |
| columns[].calc (columns[] branch 3) | object | yes | Calculation over value-column ids. A { row } or { row, previous: true } ref is refused (row-ref-in-column-calc): put cross-row refs in rows[].calc. |
| columns[].calc.ref (columns[] branch 3; columns[].calc branch 1) | string | object | yes | Cell ref: column id or { row, col?, previous? }. |
| columns[].calc.ref.row (columns[] branch 3; columns[].calc branch 1) | string | yes | Row id. |
| columns[].calc.ref.col (columns[] branch 3; columns[].calc branch 1) | string | Column id. Omitted means the column being evaluated. | |
| columns[].calc.ref.previous (columns[] branch 3; columns[].calc branch 1) | true | Prior member in this group. The first member is n/a. One of true. | |
| columns[].calc.lit (columns[] branch 3; columns[].calc branch 2) | number | yes | Constant in source units. |
| columns[].calc.op (columns[] branch 3; columns[].calc branch 3) | string | yes | Arithmetic on a and b. x/0 prints n.m., 0/0 prints n/a. A division by a negative cell is plain arithmetic and warns 'ratio-negative-base' (info); percentDelta prints n.m. there. One of 'add', 'sub', 'mul', 'div'. |
| columns[].calc.a (columns[] branch 3; columns[].calc branch 3) | object | yes | Cell or expression. |
| columns[].calc.b (columns[] branch 3; columns[].calc branch 3) | object | yes | Cell or expression. |
| columns[].calc.op (columns[] branch 3; columns[].calc branch 4) | string | yes | Absolute value. One of 'abs'. |
| columns[].calc.of (columns[] branch 3; columns[].calc branch 4) | object | yes | Cell or expression. |
| columns[].calc.op (columns[] branch 3; columns[].calc branch 5) | string | yes | a minus b. One of 'delta'. |
| columns[].calc.a (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | string | object | yes | Current cell. |
| columns[].calc.a.row (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | string | yes | Row id. |
| columns[].calc.a.col (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | string | Column id. Omitted means the column being evaluated. | |
| columns[].calc.a.previous (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | true | Prior member in this group. The first member is n/a. One of true. | |
| columns[].calc.b (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | string | object | yes | Reference cell. |
| columns[].calc.b.row (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | string | yes | Row id. |
| columns[].calc.b.col (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | string | Column id. Omitted means the column being evaluated. | |
| columns[].calc.b.previous (columns[] branch 3; columns[].calc branch 5 | columns[] branch 3; columns[].calc branch 6) | true | Prior member in this group. The first member is n/a. One of true. | |
| columns[].calc.op (columns[] branch 3; columns[].calc branch 6) | string | yes | 100*(a-b)/b relative change; n.m. when b is zero or negative, n/a when a and b are both zero. One of 'percentDelta'. |
| columns[].calc.op (columns[] branch 3; columns[].calc branch 7) | string | yes | Share of column leaf total. One of 'share'. |
| columns[].calc.of (columns[] branch 3; columns[].calc branch 7) | string | object | yes | Share denominator cell. |
| columns[].calc.of.row (columns[] branch 3; columns[].calc branch 7) | string | yes | Row id. |
| columns[].calc.of.col (columns[] branch 3; columns[].calc branch 7) | string | Column id. Omitted means the column being evaluated. | |
| columns[].calc.of.previous (columns[] branch 3; columns[].calc branch 7) | true | Prior member in this group. The first member is n/a. One of true. | |
| columns[].kind (columns[] branch 4) | string | yes | Kind. One of 'text'. |
| columns[].wrap (columns[] branch 4) | boolean | Wrap prose and grow its row; do not widen the table. A line break (\n) in a cell starts a new line. Use it for the note column of a scorecard. | |
| columns[].kind (columns[] branch 5) | string | yes | Status cell: on-track | at-risk | off-track | done | pending or { v: key }. Green means on-track, amber or yellow means at-risk, and red means off-track; keys and traffic-light words accept any case and conversions warn input-converted. Other text refuses: status-value-invalid. Numbers draw the missing dash and warn: status-value-number; a later release refuses numbers. Each key has a fixed tone. For free status text, use a text column with a cell tone. One of 'status'. |
| columns[].labels (columns[] branch 5) | object | Display text per status key, e.g. { pending: 'Learning' }. The key keeps its tone; an unlisted key prints as itself. | |
| columns[].mark (columns[] branch 5) | string | How a status prints. 'chip' (default): a tone wash behind tone-mixed text. 'square': a small tone square before ink text, with no wash. One of 'chip', 'square'. | |
| columns[].kind (columns[] branch 6) | string | yes | Date cell: an ISO date (YYYY-MM-DD) or { v: date } (other text refuses: date-invalid; numbers draw the missing dash and warn: date-value-number). One of 'date'. |
| columns[].format (columns[] branch 6) | string | Date pattern or example: '30 Sep 2026', 'Sep-26', '2026-09-30', '30.09.2026', '09/30/2026', 'September 2026' or '2026'. Tokens: d, dd, ddd, dddd, M, MM, MMM, MMMM, MMMMM, Q (1), QQ (Q1), QQQ (Quarter 1), w, ww, yy, yyyy and 'quoted literals'. Excel mmm/mmmm name months and 'dd/mm/yyyy' uses lowercase months. YYYY/YY mean year and D/DD mean day. Numeric dates use a day above 12 to choose the order. Otherwise they read day first and warn date-format-ambiguous. A year in front keeps year/month/day. A short year beside a month name with a space or comma also warns when it could be a day. 'FY26' reads the calendar year and gives date-format-fiscal-year (info). Unreadable text warns date-format-unknown and uses 'd MMM yyyy'. | |
| columns[].kind (columns[] branch 7) | string | yes | Kind. One of 'encoding'. |
| columns[].encoding (columns[] branch 7) | object | yes | Sparkline over other columns; no own cell values. |
| columns[].encoding.type (columns[] branch 7) | string | yes | Per-row mini line or column over sourceColumns; null values leave gaps in source order. One of 'sparkline'. |
| columns[].encoding.kind (columns[] branch 7) | string | Shape. Default 'line'. 'column' is zero-anchored. One y-domain is shared across visible rows of this column. One of 'line', 'column'. | |
| columns[].encoding.sourceColumns (columns[] branch 7) | array | yes | Ordered numeric source columns; they remain visible. The last observed source value is labeled from that cell's formatted text. Without a column width the track is 88 px or wider, so that label prints whole; a width fixes the track and cuts a longer label. |
| rows | array | yes | Row hierarchy; totalPosition determines resolved display order. Rows: optional label,id; each value, text, status or date column reads the source field named like its id. |
| rows[].id | string | yes | Nonempty reference id. |
| rows[].label | string | Visible name; defaults to id. | |
| rows[].parentId | string | Flat canonical hierarchy. Alternative: nested children sugar. | |
| rows[].kind | string | Presentation kind. subtotal: children add up to it; result: a calc of rows above, never added; driver: explains a line, never added. One of 'section', 'member', 'measure', 'detail', 'split', 'subtotal', 'result', 'driver'. | |
| rows[].sign | number | Subtracts from its parent. One of -1. | |
| rows[].operator | string | Operator glyph. One of '+', '−', '×', '÷', '='. | |
| rows[].final | true | Closing rule under a result. One of true. | |
| rows[].rung | integer | Presentation rung. Section and split rows do not add depth. | |
| rows[].role | string | Data, total or section row. One of 'data', 'total', 'section'. | |
| rows[].relation | string | Which rows a parent sums. 'ofWhich' and 'displayOnly' are EXCLUDED from parent aggregation — display hierarchy is not the accounting model. One of 'additive', 'ofWhich', 'displayOnly'. | |
| rows[].totalPolicy | string | derive: computed from children (authored value linted). validate (default when a value is authored): authored value displays, difference vs the computed sum is reported — verify ≠ overwrite. source: trusted, no comparison. One of 'derive', 'validate', 'source'. | |
| rows[].calc | object | Calculation per numeric column. Same algebra as computed columns. Requires relation ofWhich or displayOnly. Cross-row refs { row } and { row, previous: true } are for this field. | |
| rows[].calc.ref (rows[].calc branch 1) | string | object | yes | Cell ref: column id or { row, col?, previous? }. |
| rows[].calc.ref.row (rows[].calc branch 1) | string | yes | Row id. |
| rows[].calc.ref.col (rows[].calc branch 1) | string | Column id. Omitted means the column being evaluated. | |
| rows[].calc.ref.previous (rows[].calc branch 1) | true | Prior member in this group. The first member is n/a. One of true. | |
| rows[].calc.lit (rows[].calc branch 2) | number | yes | Constant in source units. |
| rows[].calc.op (rows[].calc branch 3) | string | yes | Arithmetic on a and b. x/0 prints n.m., 0/0 prints n/a. A division by a negative cell is plain arithmetic and warns 'ratio-negative-base' (info); percentDelta prints n.m. there. One of 'add', 'sub', 'mul', 'div'. |
| rows[].calc.a (rows[].calc branch 3) | object | yes | Cell or expression. |
| rows[].calc.b (rows[].calc branch 3) | object | yes | Cell or expression. |
| rows[].calc.op (rows[].calc branch 4) | string | yes | Absolute value. One of 'abs'. |
| rows[].calc.of (rows[].calc branch 4) | object | yes | Cell or expression. |
| rows[].calc.op (rows[].calc branch 5) | string | yes | a minus b. One of 'delta'. |
| rows[].calc.a (rows[].calc branch 5 | rows[].calc branch 6) | string | object | yes | Current cell. |
| rows[].calc.a.row (rows[].calc branch 5 | rows[].calc branch 6) | string | yes | Row id. |
| rows[].calc.a.col (rows[].calc branch 5 | rows[].calc branch 6) | string | Column id. Omitted means the column being evaluated. | |
| rows[].calc.a.previous (rows[].calc branch 5 | rows[].calc branch 6) | true | Prior member in this group. The first member is n/a. One of true. | |
| rows[].calc.b (rows[].calc branch 5 | rows[].calc branch 6) | string | object | yes | Reference cell. |
| rows[].calc.b.row (rows[].calc branch 5 | rows[].calc branch 6) | string | yes | Row id. |
| rows[].calc.b.col (rows[].calc branch 5 | rows[].calc branch 6) | string | Column id. Omitted means the column being evaluated. | |
| rows[].calc.b.previous (rows[].calc branch 5 | rows[].calc branch 6) | true | Prior member in this group. The first member is n/a. One of true. | |
| rows[].calc.op (rows[].calc branch 6) | string | yes | 100*(a-b)/b relative change; n.m. when b is zero or negative, n/a when a and b are both zero. One of 'percentDelta'. |
| rows[].calc.op (rows[].calc branch 7) | string | yes | Share of column leaf total. One of 'share'. |
| rows[].calc.of (rows[].calc branch 7) | string | object | yes | Share denominator cell. |
| rows[].calc.of.row (rows[].calc branch 7) | string | yes | Row id. |
| rows[].calc.of.col (rows[].calc branch 7) | string | Column id. Omitted means the column being evaluated. | |
| rows[].calc.of.previous (rows[].calc branch 7) | true | Prior member in this group. The first member is n/a. One of true. | |
| rows[].format | string | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor. The example's scale word and decimals hold for every value, totals included: '$1.2M' prints 4 as $0.0M and warns format-hides-values with a finer example. A German or French chart prints the scale in its own words (Mrd., Bio.; Md, Bn). Axis ticks take their digits from their spacing, and a statistic such as a mean takes up to one decimal more. A unit alone ('$M', '€bn', '%', 'x') states the prefix, the suffix and any scale word: the default number rule fills the decimals, and the scale words where the unit names none ('$M' prints 15,060,000 and 14,800,000 as $15.06M and $14.80M). A table column moves the unit into its head and picks the cell precision from the data. Spreadsheet number codes translate to examples with warning format-spreadsheet-code; percent values stay percent points. Direction glyphs (▲/▼, ↑/↓) at the start or end of the example carry a sign. A glyph inside the prefix or unit stays literal text. ± carries a sign. A trailing minus marks negatives, '1st' prints English ordinals, and '1.2E+06' prints scientific notation. With no digit, one run of 1–15 @ fixes significant figures: '$@@@M' prints 4,270,000 as $4.27M. A table holds an authored magnitude: under '$1.2k', 2,496,000 prints as 2,496.0 thousand, not as $2.5M. Percent values are authored in POINTS: 6.2 with format '1.2%' renders '6.2%'. A difference of two percent levels uses 'pp', not '%'. A separator followed by exactly three digits after a nonzero integer part is a thousands mark: '1.000' groups thousands with a dot and prints decimals with a comma; write '0.000' for three decimals. On a row: a calc row (and an inline row) prints its result through it everywhere, so a MoM subrow prints +1.2% in a money column; a data row prints its cells through it on every column that names no format of its own, so KPI rows carry their own units across month columns. A computed column that is not additive (percent change, share, multiply, divide) keeps its own kind: a data row's format does not reach it. | |
| rows[].polarity | string | Row judgment direction. It overrides the column polarity in every column that judges a change, and judges every cell of a calc or inline row; a level column without a polarity stays uncolored. A table that colors both directions prints a note naming the rows that read the other way. One of 'higherIsBetter', 'lowerIsBetter'. | |
| rows[].inline | true | Line below the parent value. Its row label stays on that baseline; it has no row of its own. Requires relation 'displayOnly'. Its values carry data-id cellline:<parentRow>:<column>:<line> (not cell:<row>:<column>). Scene-ID components escape % as %25 and : as %3A. Authored IDs stay unchanged. One of true. | |
| rows[].inlineGroup | string | Which switch hides this line. Rows that share a group hide together; the default is the row id. | |
| rows[].scale | string | Row precision. The max absolute value uses only cells without a cell or column format. Money: 1 decimal in k at max >= 1000, else whole units; it climbs k, M, B by its largest value unless options.magnitude is thousand or million, which a money row follows (whole thousands from 100,000 up). Per unit: fractional values keep authored precision. Without a format, start whole at max >= 10, else 1 decimal, then raise precision for rounding error above 1%, up to 20 decimals. Integer-only rows keep those defaults. It overrides table magnitude. Currency goes in unitAffix. Scaled money and automatic count rows add decimals for rounding error above 1%, up to 20; held whole thousands stay whole. Nonzero stays nonzero. Count/percent keep format. One of 'money', 'perUnit', 'count', 'percent'. | |
| rows[].unitAffix | string | Unit beside the row label. Muted ink on the same line: $M, # orders. It takes no second line, so the change lines under the label stay level with the ones under the values. A forced options.magnitude overrides it with the scale letter it hoists out of this row's cells. | |
| rows[].missing | string | Row gap glyph. 'blank' leaves a MISSING cell of this row empty, 'dash' prints the em dash; omitted, the row takes options.nulls. Set it on a change line with no value in a block column, so that slot stays empty while the real gaps keep their dash. The explicit states na, nm and suppressed keep their glyphs. One of 'blank', 'dash'. | |
| rows[].spacer | number | Gap before the row in px; the first drawn row takes none. | |
| rows[].foldable | false | Never folds. No toggle or mark; its children always show. One of false. | |
| rows[].badge | object | Section chip. Refused on other rows. | |
| rows[].badge.text | string | yes | Text. |
| rows[].badge.tone | string | Default neutral. One of 'good', 'warn', 'bad', 'neutral'. | |
| rows[].cells | object | Cells by column id; computed columns and calc rows use their calculation. | |
| rows[].cells.*.v | number | string | null | Value before formatting. null means missing, as for a scalar null cell. | |
| rows[].cells.*.note | string | Inline annotation, e.g. '(−51%)'. | |
| rows[].cells.*.strong | true | Strong good. Kept under exceptions. One of true. | |
| rows[].cells.*.tone | string | Cell judgment tone. One of 'good', 'bad', 'warn', 'neutral'. | |
| rows[].cells.*.bands | array | Value bands. Each band has an upper bound to (cell units before formatting, ascending), a tone (default neutral) and a label. The cell takes the first band whose to is at or above its value: below the first bound it takes the first band, above the last it takes the last. Precedence: cell tone, then bands, then sign judgment. Missing, n/a, n.m., suppressed and open cells are not judged; text cells ignore bands. The label shows on hover and in the accessible table. | |
| rows[].cells.*.bands[].tone | string | Tone. One of 'good', 'warn', 'bad', 'neutral'. | |
| rows[].cells.*.bands[].to | number | yes | Upper bound. |
| rows[].cells.*.bands[].label | string | Name. | |
| rows[].cells.*.href | string | HTML renderer emits a link; SVG renders text. | |
| rows[].cells.*.state | string | Explicit non-value state; 'na' → n/a · 'nm' → n.m. · 'suppressed' → — with footnote · 'open' → a period still to come, empty on the band ground. Distinct from null (missing → '—'). One of 'na', 'nm', 'suppressed', 'open'. | |
| rows[].cells.*.missing | string | Override the missing glyph for this cell. blank leaves no glyph; dash uses the theme missing glyph. One of 'blank', 'dash'. | |
| rows[].cells.*.heat | false | Keeps the cell out of its heat lane. false draws it unshaded in the muted ink and leaves it out of the range (a calendar M0 diagonal). One of false. | |
| rows[].cells.*.format | string | Number format example. Examples: '€1.2m', '1,234', '+1.2%', '1.2pp', '$1.2bn', '(1.0)'. A magnitude after the number divides the raw value: k, thousand, Tsd., Tausend (10³); m, M, mn, mm, million(s), Mio., Million(en) (10⁶); b, B, bn, billion(s), Mrd., Milliarde(n), milliard(s) (10⁹); tn, trillion(s), Bio., Billionen (10¹²). The letters k, m, M, mm, b, B and T scale when glued to the number or spaced beside a currency ('$1.2 k'); '12 m/s' and '50 B' keep their unit. A scale inside a currency affix ('USDm 1.2', '1.2 €m') holds that divisor. The example's scale word and decimals hold for every value, totals included: '$1.2M' prints 4 as $0.0M and warns format-hides-values with a finer example. A German or French chart prints the scale in its own words (Mrd., Bio.; Md, Bn). Axis ticks take their digits from their spacing, and a statistic such as a mean takes up to one decimal more. A unit alone ('$M', '€bn', '%', 'x') states the prefix, the suffix and any scale word: the default number rule fills the decimals, and the scale words where the unit names none ('$M' prints 15,060,000 and 14,800,000 as $15.06M and $14.80M). A table column moves the unit into its head and picks the cell precision from the data. Spreadsheet number codes translate to examples with warning format-spreadsheet-code; percent values stay percent points. Direction glyphs (▲/▼, ↑/↓) at the start or end of the example carry a sign. A glyph inside the prefix or unit stays literal text. ± carries a sign. A trailing minus marks negatives, '1st' prints English ordinals, and '1.2E+06' prints scientific notation. With no digit, one run of 1–15 @ fixes significant figures: '$@@@M' prints 4,270,000 as $4.27M. A table holds an authored magnitude: under '$1.2k', 2,496,000 prints as 2,496.0 thousand, not as $2.5M. Percent values are authored in POINTS: 6.2 with format '1.2%' renders '6.2%'. A difference of two percent levels uses 'pp', not '%'. A separator followed by exactly three digits after a nonzero integer part is a thousands mark: '1.000' groups thousands with a dot and prints decimals with a comma; write '0.000' for three decimals. On a cell: a value or computed cell prints through its own format, ahead of its row's and its column's. A YoY column in '+1.2%' prints the change of a share KPI in points with '+1.2pp' on that one cell. The text, the hover card, the accessible table and the width fitting all use it. | |
| rows[].children | array | Child rows; normalized to parentId. | |
| levelNouns | array | Child nouns by level. Indexed by the level they name: levelNouns[1] names level-1 children. A collapsed parent appends "· 4 markets" only where the noun is authored — nothing is invented. | |
| levelNouns[].one | string | yes | Singular noun, e.g. "market". |
| levelNouns[].other | string | yes | Plural noun, e.g. "markets". |
Options
| Path | Type | Values | Default | Meaning |
|---|---|---|---|---|
| mountCollapsed | boolean | Default true. false removes closed descendants from the React DOM and defers offscreen leaf paint. | ||
| paintOffscreenRows | boolean | React only. true paints every mounted row at once, so a capture of a long table has no blank rows, and a long table paints slower. Default false. Closed rows follow mountCollapsed. | ||
| signs | string | 'signed', 'operators', 'plain' | How sign -1 rows print. signed (default) negates them; operators draws + − × =; plain draws neither. | |
| driverTones | string | 'grouped', 'always', 'never' | Driver tones. 'grouped' (default): drivers with a parentId whose parent is not a section heading do, as statement lines do. 'always': every driver. 'never': driver ink only, as before 0.28. Neutral figures and labels keep the driver ink. | |
| judgments | string | 'all', 'exceptions' | Which tones show. exceptions: strong good and bad only. | |
| variant | string | 'steering', 'benchmark', 'status', 'receipts', 'hierarchy' | 'hierarchy' | Variant defaults only; no variant changes what a cell accepts. Default 'hierarchy'. 'steering': total on top, no group band. 'benchmark': strong row labels, no group band. 'status': square status chips. 'receipts': dates align right. A status cell, in any variant, takes a status-column key; for free status text use a text column with a cell tone. |
| encodings | object | Per-column opt-in visual encodings. | ||
| encodings.*.type (encodings.* branch 5) | string | 'arrow' | Select the arrow lane. | |
| encodings.*.scale (encodings.* branch 5) | string | 'absolute', 'relative' | 'absolute' cuts the change itself at 10 and 2 (points on a percent column); 'relative' cuts its share of the column's largest change at 10% and 2%. Default 'absolute' on a percent column, 'relative' elsewhere. | |
| encodings.*.type (encodings.* branch 6) | string | 'heat' | Select the heat lane. | |
| encodings.*.cap (encodings.* branch 6) | object | Where the lane saturates; without it the largest magnitude in the column does, on both sides of zero. Lanes with different caps add the note that shading compares values within each column. | ||
| encodings.*.cap.pct (encodings.* branch 6) | number | Percent-column tint cap in points. Example: 20 for a ±20% YoY lane. | ||
| encodings.*.cap.abs (encodings.* branch 6) | number | Other numeric tint cap in source units. | ||
| encodings.*.alpha (encodings.* branch 6) | number | Tint weight at the cap; default 0.18, and 0.26 on scale 'status', where every painted cell takes it. Text stays readable up to 0.18 on every shipped theme and up to 0.35 on a status ground; above that the figures take the contrast ink. | ||
| encodings.*.excludeTotals (encodings.* branch 6) | boolean | Leave total rows untinted; default true. Heat reads a variance, and a total has none worth coloring. | ||
| encodings.*.steps (encodings.* branch 6) | integer | Band count. 5 gives the cohort ladder: 6 / 14 / 26 / 42 % of the ink over the background, then the full ink with inverse text, from the theme token surface.heatSteps. A stepped lane measures the data rows only, so a closing row does not set the scale. | ||
| encodings.*.scale (encodings.* branch 6) | string | 'column', 'absolute', 'diverging', 'status' | Where a band comes from. 'column' (default) normalizes over this column's own min and max; with two or more such columns the table adds the note that shading compares values within each column. 'absolute' cuts at bins, so every column of a grid reads on one scale. 'diverging' measures the distance from the column average and paints good above and bad below; under polarity 'lowerIsBetter' the sides swap. 'status' is a traffic light against the same center: a value within tolerance of it paints warn, farther above good and farther below bad, the other way round on a column with polarity lowerIsBetter; it reads no steps, bins, span or cap. | |
| encodings.*.bins (encodings.* branch 6) | array | Ascending band edges. On scale 'absolute' a value takes the band of the last edge it reaches (e.g. [30, 40, 50, 60] gives five bands); on 'diverging' they are the |distance| edges, default [1, 4]. Given without steps, they set the band count themselves. | ||
| encodings.*.span (encodings.* branch 6) | number | Spread that fills a column ramp. Measured in column units; a smaller spread takes bands from the lightest up, so a spread of 1 point is not painted like one of 30. Omitted, every column's own min and max fill the ramp. | ||
| encodings.*.center (encodings.* branch 6) | string | 'total' | Center: column total. On scales 'diverging' and 'status' a reader can check every band against that printed figure. Omitted, or in a column without a total row value, the center is the average of the column's data rows. | |
| encodings.*.tolerance (encodings.* branch 6) | object | Warn band of scale 'status'. A value at most this far from the center paints warn, the boundary included; default { pct: 5 }. Give exactly one of pct and abs. | ||
| encodings.*.tolerance.pct (encodings.* branch 6) | number | Percent of the center. 5 reads 62 to 68 as warn around 65. | ||
| encodings.*.tolerance.abs (encodings.* branch 6) | number | Column units. 2 reads 63 to 67 as warn around 65. | ||
| encodings.*.columns (encodings.* branch 6) | array | Further columns this rule paints. A sixty-column cohort grid names its lane once instead of sixty times, and a column that carries its own entry keeps it. Leave a column out to keep it unshaded. | ||
| totalPosition | string | 'top', 'bottom' | Total-row position; variant supplies the default. | |
| density | string | 'compact', 'regular', 'relaxed', 'cohort', 'cohort-small' | 'regular' | Cell spacing. 'compact' keeps half of each row's regular air, rounded down (theme table.compactStep sets a fixed step instead), and 'relaxed' adds 2 px above and below; type, heads and cell air keep their size. Before a size refusal, the static table retries with compact spacing, tight margins and automatic height unless belowMinimum is 'refuse'. Where a fixed width or height still misses, cell air, column gaps and margins shrink to 2 px air and 4 px gaps, and row air to 1 px where the height misses; a 'table-tight-spacing' warning names the size for compact spacing. 'cohort' and 'cohort-small' are the fixed matrix grids of a cohort table: rows of 26 px (20 px) whatever the level, cells one (two) steps under the label, heads on the axis step, and value columns centered unless the column names its own alignment. |
| nulls | string | 'blank', 'dash' | What a MISSING cell prints. 'dash' (the default) keeps the em dash; 'blank' leaves it empty, which is what a cohort staircase needs — a cohort acquired in May has not been observed at M8, and a triangle of dashes is noise. The explicit states na, nm and suppressed keep their glyphs. | |
| figures | boolean | Print the cell figures; default true. false draws the heat grounds alone in 22 px cells, over any width authored for the figures, on 14 px rows or the line box of the text a row still prints where that is taller, so a sixty-column triangle fits one screen. The heads keep their labels and the numbers stay in the markup for a reader who cannot see the grounds. Refused on a table without a heat lane in encodings. | ||
| expansion | object | Expansion order: depth, collapsed, expanded. | ||
| expansion.depth | integer | string | 'all', 'totals' (or another value of its type) | Parents at levels below depth start expanded; 'all' or omission expands every parent; 'totals' shows the totals alone. | |
| expansion.collapsed | array | Row-id overrides applied after depth. | ||
| expansion.expanded | array | Row-id overrides applied last; they win over collapsed. | ||
| expansion.rootsHidden | boolean | Hide level-0 data rows and subtrees. The totals and the section headings stay: this is the totals-only step of a depth control, which collapsing a parent cannot reach, because a collapsed parent still draws its own row. | ||
| columnVisibility | object | True shows a column and false leaves it out: the ids are data.columnToggles ids on table and column ids elsewhere. | ||
| columnHeads | false | false | false: no visible head row and no group heads, with their height and rule. Assistive technology still reads the head in React, and sortable warns there. | |
| inlineVisibility | object | Visibility by inlineGroup. An absent group is visible, so a Changes control hides every MoM line of a table with one entry. | ||
| magnitude | string | 'auto', 'thousand', 'million' | Money scale for all rows and columns. 'thousand' prints whole thousands, 'million' keeps the example's decimals, and no column rolls up on its own. The scale letter leaves the cells and hoists to the frame, the column header or, where the format sits on the row, the row label. 'auto' (the default) lets each column and money row pick from its own largest value. | |
| foldOn | string | 'row', 'toggle' | React only. What folds a parent row. 'row': a click on the row folds it, and selects it too where the host made it selectable. 'toggle': only the fold mark folds; a row click only selects. Default: 'toggle' for a selectable row, else 'row'. Enter and Space follow the click. | |
| groupGround | string | 'expanded', 'always', 'none' | Group row ground. 'expanded' (default): only an open group's header row. 'always': folded or open, as before 0.28. 'none': no group ground. The Total keeps its ground. Absent: theme table.groupGround. | |
| anchorWash | boolean | Wash expanded level-0 anchors; no control. | ||
| stickyLabels | boolean | integer | object | Pin header and columns. React only; static output shows the whole table. true pins one column, a number pins that many (2 for a cohort grid), and the last carries a hairline shadow. The object form sets head, columns, top and sections. Page mode is refused with React fillHeight. Off in print. | ||
| stickyLabels.head | string | false | 'table', 'page', false | Head pin mode. 'table' (default): in the table's own scroll box, which the host sizes. 'page': to the page scroll at top px; the body has no vertical scroll box, and no overflow ancestor may sit above the table. false: no pinned head. | |
| stickyLabels.columns | integer | Columns. Default 1. | ||
| stickyLabels.top | number | Offset in px. Clears a host toolbar. Default 0; above 0 needs head: 'page'. | ||
| stickyLabels.sections | boolean | Section label. Default false. true keeps the active section label under the head until the next section starts. | ||
| frameFill | string | 'values', 'none' | 'values' | Under rowExtent 'frame'. 'values' (default): automatic value tracks grow in whole pixels, up to maxGrowth (default 2.5). An unauthored label track takes the rest. 'none': columns keep their widths; an empty track carries the row ground and rules to the edge. |
| heightFill | string | 'rows', 'none' | 'rows' | Spare canvas height. 'rows' (default) spreads it over leaf rows as air, up to 16 px a side. 'none' leaves it empty. |
| rowLabelLines | integer | 2 | Lines a row label may take before a cut (default 2). A label breaks at a space or after _ - / or a dot, so a long campaign name wraps instead of ending in '…'. 1 keeps every label on one line; a higher count lets a row grow to its lines. A cut label keeps its full name in its title. | |
| lastTrackFlex | boolean | Last unauthored track takes the spare frame width when rowExtent is tracks. Default false. | ||
| rowExtent | string | 'tracks', 'frame' | 'frame' | Where rows end. 'frame' (default) fills the width inside the frame margins. An explicit 'frame' also carries row grounds and rules through authored side margins. frameFill controls track growth. 'tracks' stops rows at the last column. Column bands stop at their columns. Tables use horizontal rules and explicit column separators; there is no single vertical end rule. |
| sortIndicator | string | 'all', 'sorted' | Sortable headers with a chevron. 'all' (the default) draws one on every sortable header; 'sorted' draws it on the sorted one alone and keeps the others' reserve, so no track moves. | |
| levelOffset | integer | Shift body rows down the ladder. Default 0. A board whose top rows are groups rather than KPI lines reads one rung too heavy: 1 steps them down in size, weight, air, ground, indent and label ink, -1 steps them up. The rungs stay floored at the top and at the deepest step. | ||
| cellPadX | number | Horizontal cell padding in px. Default 12; only when it cannot fit, use 5 for 20–24 columns or 3 for 25 or more. | ||
| groupRule | string | 'label', 'span' | 'span' | Heading rule. 'span' (default) rules every column of the group, so it shows which columns the heading covers; 'label' underlines the heading text alone. |
| groupAlign | string | 'left', 'center', 'right' | 'center' | Heading position. 'center' (default) centers the heading over its columns; in the React grid a group wider than the visible scroll area starts its heading at the first column, and the heading stays in view while the group scrolls. 'left' always starts it at the first column, 'right' ends it at the last. A heading wider than its columns starts at the first column. |
| maxGrowth | number | false | false (or another value of its type) | 2.5 | Value-track growth cap; default 2.5, false removes the cap. Applies to SVG and React frame fill; the label track takes the remaining width. Also caps React container fit growth. |
| labelIndent | object | Tree indent from row edge. Absent: cell air without marks; cell air plus 24 with outlineMarks: true or interactive fold buttons. Then 16 per rung. | ||
| labelIndent.base | number | Level-0 start from row edge, padding included. | ||
| labelIndent.step | number | px per rung; default 16. | ||
| outlineMarks | boolean | false | Fold marks beside parent rows. Drawn in static SVG/PNG and read-only grids. Default false: no marks or gutter. true draws the marks and reserves their gutter. Interactive grids keep their fold buttons either way. |
Plus the shared options. This type does not accept detailFields, labels, labelPosition, valueAxis, story, hatchStrength, rounding, annotations. This type ignores animate, debug, rowLabels, categoryAxis, categoryLabels, secondaryAxis, bandFraction, valueAxis.show, valueAxis.gridlines, focus, labelDensity with an option-ignored warning.
Annotations
This type takes no annotations.
A wide table at the width it is shown at
Pick the target and render the table at the width the page shows it at; let the rows set the height: target: "report" and size: { width: 1050 } for a 1,050 px report column. A table drawn at 1,233 px and scaled into that column by the host shrinks every font to 85 percent, more than the 10 percent a chart may shrink. Column widths spread the tracks across the frame; without them the table keeps its natural width and the rest of the frame stays margin.
The target sets the text size. At 1,050 px a report table is in the M class: 15 px body and row labels, 14 px column heads. A dashboard table takes target: "dashboard". theme.overrides still sets a role size in every width class, type.label.size for the body and the row labels and type.axis.size for the column heads; a size below the target's floor warns. Put the width the host shows the SVG at in embed.width: if the host still scales the table down, type-below-effective-min names the narrowest width at which the text stays readable.
When the columns do not fit at that width, the size refusal names one minimum width, measured in the type the table uses at that width, and rendering at it works. If that is wider than the page, split the table or drop columns instead of scaling it down. The fixture wide-at-destination-width draws this table.
{
"type": "table",
"data": {
"columns": [
{ "id": "region", "kind": "rowLabel", "label": "Sales region", "width": 210 },
{ "id": "q1", "kind": "value", "label": "Q1 2025", "format": "1,234", "width": 98 },
{ "id": "q2", "kind": "value", "label": "Q2 2025", "format": "1,234", "width": 98 },
{ "id": "q3", "kind": "value", "label": "Q3 2025", "format": "1,234", "width": 98 },
{ "id": "q4", "kind": "value", "label": "Q4 2025", "format": "1,234", "width": 98 },
{ "id": "q5", "kind": "value", "label": "Q1 2026", "format": "1,234", "width": 98 },
{ "id": "q6", "kind": "value", "label": "Q2 2026", "format": "1,234", "width": 98 },
{ "id": "q7", "kind": "value", "label": "Q3 2026", "format": "1,234", "width": 98 },
{ "id": "q8", "kind": "value", "label": "Q4 2026", "format": "1,234", "width": 98 }
],
"rows": [
{
"id": "north",
"label": "North",
"cells": {
"q1": 1200,
"q2": 1305,
"q3": 1310,
"q4": 1415,
"q5": 1420,
"q6": 1425,
"q7": 1530,
"q8": 1535
}
},
{
"id": "central",
"label": "Central",
"cells": {
"q1": 1650,
"q2": 1655,
"q3": 1660,
"q4": 1665,
"q5": 1770,
"q6": 1775,
"q7": 1780,
"q8": 1785
}
},
{
"id": "south",
"label": "South",
"cells": {
"q1": 1880,
"q2": 1985,
"q3": 1990,
"q4": 1995,
"q5": 2040,
"q6": 2125,
"q7": 2130,
"q8": 2135
}
},
{
"id": "west-coast",
"label": "West coast",
"cells": {
"q1": 2190,
"q2": 2195,
"q3": 2280,
"q4": 2285,
"q5": 2290,
"q6": 2395,
"q7": 2400,
"q8": 2405
}
},
{
"id": "east-coast",
"label": "East coast",
"cells": {
"q1": 2440,
"q2": 2525,
"q3": 2530,
"q4": 2535,
"q5": 2620,
"q6": 2625,
"q7": 2630,
"q8": 2715
}
},
{
"id": "islands",
"label": "Islands",
"cells": {
"q1": 2750,
"q2": 2755,
"q3": 2760,
"q4": 2845,
"q5": 2870,
"q6": 2875,
"q7": 2960,
"q8": 2965
}
}
]
},
"options": {
"title": "Every region sold more in 2026 than a year before",
"subtitle": { "measure": "Units sold", "period": "Q1 2025 to Q4 2026" },
"source": "Synthetic data for an invented retailer",
"target": "report",
"size": { "width": 1050 },
"embed": { "width": 1050 }
}
}Statements: signs, subtotals, results and drivers
A table prints an accounting statement, such as a P&L or a contribution-margin statement, from figures that the host supplies. Use it when the host has the figures, for example a P&L from the ledger. When boardplot must compute the lines from additive sums per period, use a dimswitch statement instead: see dimswitch.
Four row fields make the statement:
kind: "subtotal": a row that its children add up to, such as Cost of sales. It prints its label and figures at the theme weighttable.weights.subtotalon the groundtable.grounds.subtotal, and it folds like any parent.kind: "result": a row computed from rows above it withcalc, such as Gross profit ={ "op": "sub", "a": { "ref": { "row": "revenue" } }, "b": { "ref": { "row": "cogs" } } }. It prints bold with a rule above it, and it stays where you put it: a result is never moved like a total. A result may read another result: EBIT ={ "op": "sub", "a": { "ref": { "row": "gp" } }, "b": { "ref": { "row": "opex" } } }; boardplot evaluates them in order and refuses a cycle.final: trueputs the closing rule under it (themetable.finalRule, a double rule by default).kind: "driver": a row that explains a line and is never added, such as units sold. It prints in italic in the driver ink. A driver that sits under a line shows the good, warn or bad tone of its figures; seeoptions.driverTonesbelow.sign: -1: the row subtracts from its parent. Supply costs as positive figures and setsign: -1on the cost row. The contribution sign of a row is the product of the signs of the row and its additive parents, so the children of Cost of sales subtract too.
result and driver rows are never added to a parent: they imply relation displayOnly, and boardplot refuses another relation on them, because a result added to its parent counts the parent twice. sign needs relation additive. A calc reads the supplied values, before any sign: Gross profit = revenue − cost of sales, with cost of sales positive.
options.signs decides how a sign prints. "signed" (the default) prints the figures of a row with contribution sign −1 negated, and its absolute changes too, so the column adds up from top to bottom; a relative or pp change and a ratio of two cells keep their sign, and a driver or result prints its own value. An arrow and a column sort follow the printed sign, while tone, heat and bars judge the figure you supplied. "operators" prints the figures as supplied and puts an operator before the label: − for sign: -1, = for a result, and row.operator where you set it (+, −, ×, ÷ or =). "plain" prints neither. A table without sign: -1 rows prints the same in all three modes.
options.judgements: "exceptions" keeps only the strong good and the bad colors; good and warn cells print neutral. Use it when a full heat map is too loud.
options.driverTones decides whether a driver row shows the tones its figures earn. "grouped" (the default) shows them for a driver that has a parentId whose parent is not a section heading, as the lines of a statement do; a flat driver and a driver under a section heading keep the driver ink. "always" shows them for every driver, and "never" keeps the driver ink everywhere, as before 0.28. A neutral figure and the label keep the driver ink, and the italic face stays. A dimswitch statement takes the option too: its drivers sit under their lines, so they show their tones by default.
Every color, weight and rule of a table is a theme key, so the client decides the look. table.inks sets the inks of the heads, sub-labels, labels, child labels, figures, qualifiers, operators, drivers and fold toggles; for gray absolute numbers set table.inks.figure. table.weights sets the label weights of members, measures, subtotals and results, their figure weights in figures, the Range and vs prior block in block, and the change lines in change. table.ruleWidths.head, table.resultRule, table.finalRule, table.driver.italic, table.qualifier, table.section.case, table.toggle, table.operator.width and table.grounds.subtotal and .total set the rest. Every key has a default that keeps the drawing of 0.24.
tableLooks.sheet from boardplot is a ready look: the report sheet with filled judgment cells, a 2 px head rule, gray subtotal grounds, bold results with a double closing rule and italic drivers. Use it as theme: { "preset": "boardroom", "overrides": tableLooks.sheet } and change any key on top of it. It is an option; no table takes it by default. Column heads print in capitals by default. The text after the last comma, text in parentheses or square brackets, and a word with a capital inside it stay as written, so Standby power (mW) prints STANDBY POWER (mW) and eBay sales prints eBay SALES; table.head.case: "asis" keeps the whole head as written ($k).
{
"type": "table",
"data": {
"columns": [
{ "id": "line", "kind": "rowLabel", "label": "$k" },
{ "id": "fy25", "kind": "value", "label": "FY2025", "format": "1,234" },
{ "id": "fy26", "kind": "value", "label": "FY2026", "format": "1,234" },
{
"id": "chg",
"kind": "computed",
"label": "Change",
"calc": { "op": "delta", "a": "fy26", "b": "fy25" },
"format": "+1,234"
}
],
"rows": [
{
"id": "revenue",
"label": "Revenue",
"kind": "subtotal",
"children": [
{ "id": "product", "label": "Product sales", "cells": { "fy25": 8200, "fy26": 9100 } },
{ "id": "services", "label": "Services", "cells": { "fy25": 1300, "fy26": 1500 } },
{
"id": "units",
"label": "Units sold (k)",
"kind": "driver",
"cells": { "fy25": 41, "fy26": 45 }
}
]
},
{
"id": "cogs",
"label": "Cost of sales",
"kind": "subtotal",
"sign": -1,
"children": [
{ "id": "materials", "label": "Materials", "cells": { "fy25": 3900, "fy26": 4300 } },
{ "id": "freight", "label": "Freight", "cells": { "fy25": 600, "fy26": 700 } }
]
},
{
"id": "gp",
"label": "Gross profit",
"kind": "result",
"calc": { "op": "sub", "a": { "ref": { "row": "revenue" } }, "b": { "ref": { "row": "cogs" } } }
},
{
"id": "opex",
"label": "Operating expenses",
"kind": "subtotal",
"sign": -1,
"children": [
{ "id": "staff", "label": "Staff", "cells": { "fy25": 2400, "fy26": 2550 } },
{ "id": "marketing", "label": "Marketing", "cells": { "fy25": 900, "fy26": 1150 } }
]
},
{
"id": "ebit",
"label": "EBIT",
"kind": "result",
"final": true,
"calc": { "op": "sub", "a": { "ref": { "row": "gp" } }, "b": { "ref": { "row": "opex" } } }
}
]
},
"options": { "title": "EBIT rises 200 to 1,900 as revenue grows faster than costs", "signs": "signed" }
}Group grounds, folds, frames and fitted formats
On every target, a missing input prints n/a (German k. A.) in values and calculations. A row keeps its missing glyph when it has no previous column in its group. A later 0/0 calculation prints n/a. A calculation skipped for an incompatible computed column keeps its placeholder. Explicit missing glyphs, nulls: blank, cohort density and table.noPrevious keep their existing missing-cell rules.
groupGround decides which group rows carry the group ground (the emphasis and band grounds of the top two rungs, under a preset that draws them). "expanded" (the default, a 0.28 change) grounds only the header row of an open group, so a folded group row, and a leaf on its rung, look like normal rows; the Total keeps its own ground. "always" keeps the 0.27 look: every group row and every leaf on its rung, folded or open. "none" draws no group ground. The theme key table.groupGround sets the default for a look such as sheet; the table option wins. SVG and grid agree.
foldOn (React) says what folds a parent row. "row": a click on the row folds it, and selects it too where the host made it selectable. "toggle": only the fold mark folds, and a row click only selects. The default is "toggle" for a selectable row (an onRowSelect host that does not narrow isRowSelectable) and "row" for any other row. Enter and Space on a cell do what the click does.
A depth control writes options.expansion.depth: a number, "all", or "totals", the totals step that folds every parent and shows the totals and the section headings alone. A table without a total row keeps its level-0 rows, folded, under open section headings, so the step never leaves an empty body. In React a mounted table follows a new expansion: the reader's folds give way to it, while scroll and column toggles stay and the rows fold and open with their animation (none under reduced motion). When the row that holds the focus folds away, the focus moves to its parent. onExpansionChange reports each reader fold as an expansion (the authored lists rewritten); a control shows no depth pressed while the lists differ from the ones it wrote, and stores the report in the spec so that a later press of the same depth is a change. A dimswitch reports the fold through onViewChange (reason "collapsed"); a host that controls collapsed and sets it back to undefined gets the folds of the depth back.
Under rowExtent: "frame" the rows reach the frame edge, and frameFill (default "values") grows the value and computed tracks, in proportion to their widths and in whole px, until the columns end at that edge too: the row ground, the rules, the band columns and the cell tones all end together, and an authored width is a minimum. frameFill: "none" keeps the 0.27 look, where the columns keep their widths and an empty stretch carries the row ground and the rules to the edge. A table wider than its frame is not squeezed, and a right margin leaves its own empty stretch.
A change line prints its authored format as authored: +1.2k prints +1.4k, −0.4k and 0.0k for 1350, −360 and 10, and a signed or inline row never gets extra decimals. A level row keeps "nonzero stays nonzero", so a small money or count figure does not print as 0.
A figure prints the same text at every width. A value track with an authored width widens to hold its widest figure and warns table-column-widened. Below the smallest width of the table, the CLI and MCP tool refuse the size and name the width it needs, and React scrolls. To print fewer digits, write a shorter format example, such as $1.2M for $1.23M. options.fitFormats and fitFormat on a row or a column are retired and ignored with an option-deprecated warning. An authored format prints in its own magnitude: $1.2k prints 2,496,000 as 2,496.0 thousand, never as $2.5M.
A table with no data row (no row at all, or only section headings and totals) keeps its head and draws one quiet row under it that says "No data to show." Folds and rootsHidden do not make a table empty. React calls onEmpty once, and strings.emptyMessage words the row; the static SVG draws the default wording. canDraw(request) answers { ok: false, code: "empty-data" } for the same table, so a host can hide the card before it renders. dimswitch takes onEmpty too; it is empty only when it has no measure.
Cell padding does not animate in the grid. A change of cellPadX and of the tracks in one render shows no moment where a head wraps on the old padding. A table that mounts does not animate its row heights; only a fold (the max-height of the children), the inline-lines switch and a column toggle animate, and prefers-reduced-motion turns those off.
Value bands and a pinned head
A numeric cell object takes bands: a list of ascending upper bounds to in the cell's own units, before display formatting, each with an optional tone (good, warn, bad or neutral) and a label. The cell takes the first band whose to is at or above its value; a value under the first bound takes the first band and a value over the last bound takes the last. Negative bounds and zero are fine. An explicit tone on the cell beats the bands, and the bands beat the automatic sign judgment of a change. A missing, n/a, n.m., suppressed or open cell is not judged, and a text cell ignores the bands. muted, a column materiality and options.judgements still apply. The label shows on hover and in the accessible table. bands color a level; use polarity for the sign of a change.
stickyLabels: true or a number keeps its meaning: the head and that many leading columns pin inside the table's own scroll box, which the host sizes (React fillHeight, or a height on the scroller). The object form names the parts: { "head": "table" | "page" | false, "columns": 1, "top": 0, "sections": false }. head: "page" pins the head to the page scroll at top px, so it clears a host toolbar. The body then has no vertical scroll box, the head follows its sideways scroll, and no ancestor between the table and the scrolling page may set overflow, because it would capture the sticky head. Page mode is refused with fillHeight; the refusal names the fix. sections: true keeps the label of the section in view under the head until the next section starts, or until the table ends. top above 0 needs head: "page". A dimswitch takes the object too and keeps its own pinned column count (3, or 4 with a plan column) unless you set columns. Static SVG, PNG and PDF show the whole table and ignore sticky. Print turns sticky off.
Sizing
Floor 100 × 80 px; fit content.
Below the floor a render is refused with size-below-floor and the pixels it needs. measure returns the natural and comfortable size for a given spec; see Sizing in the manual.
Fixtures
| ID | Kind | Use case |
|---|---|---|
| steering-monthly | example | Management steering: actual vs plan with validated group total |
| steering-executive-report | example | Executive KPI table: monthly values with verified MoM, YoY and YTD |
| department-steering-mini | example | Department steering mini-table: share bars and cost variances |
| table-scorecard | example | Scorecard: one row per initiative with a value, a state chip and a wrapping note |
| table-status-square | example | Status column with host labels and the square mark |
| benchmark-competitors | example | Benchmark: revenue share and margin with derived total |
| receipts-changelog | example | Receipts: dated change log with old → new values |
| pivot-with-notes | example | Yearly pivot: metric rows with inline annotation cells |
| cohort-retention | torture | Torture: cohort table with right-censored cells |
| nulls-policy | torture | Torture: missing child values under propagate vs skip |
| heat-region-month-grid | example | Heat table: region × month grid across six numeric columns |
| fatigue-cell-encodings | example | Fatigue diagnostic: spend bars and arrows on three signed Δ% columns |
| arrow-relative-percent | torture | Arrows on a percent change, angled against the largest change |
| kpi-trend-sparkline | torture | KPI trend: sparkline with the source columns kept visible |
| sparkline-line-column | torture | Line and column sparklines share one y-domain per column; last values labeled |
| management-report | example | Monthly revenue report with expandable hierarchy and forecast detail |
| management-report-de | example | Monthly revenue report with expandable hierarchy and forecast detail, German number format |
| management-report-compact | example | Monthly revenue report at README width: month-to-date and closed year-to-date |
| status-review-relaxed | example | Status review with more space between business units |
| text-scale-small | torture | textScale 0.85 sets the table faces smaller, each stopping at the report floor |
| shared-swiss-cash-movement | example | Cash movements with swiss number grouping |
| shared-spaced-cash-movement | torture | Cash movements with spaced number grouping |
| proportional-figures | example | Theme with proportional figures on numbers |
| torture-long-labels | torture | Torture: long names at a generous size read whole, never cut |
| steering-kpi-rows | example | KPI rows with their own units: revenue in $M, new customers as a count, CAC in $, across month columns |
| monthly-kpi-sections | example | Monthly KPI board: two sections over twelve months and their average, a change line under every value |
| table-level-ladder | example | Four levels of one KPI, two body sizes and a compact value block |
| steering-table-v2 | example | Monthly KPIs with the change lines inside the cell, 2026 YTD after nine months |
| magnitude-forced | example | Every money figure in thousands, and the unit on the text that already carries it |
| column-band | example | A banded pair inside one column group, with the toggle still covering the year |
| totals-only | torture | Depth 0: the total alone, with the markets one step away |
| totals-step | torture | Depth 'totals': the group total alone over two regions with markets |
| mixed-top-level-rows | torture | A leaf among parents on the top rung keeps their ground |
| steering-level-offset | example | Regions one rung down under levelOffset, the total on its own step |
| steering-week-grain | example | Week grain: fixed tracks, ISO weeks under the dates, chevron on the sorted column |
| row-extent-frame | example | Rows that reach the frame edge in a card wider than the table |
| column-groups-no-heading | example | Column groups that keep their meaning and draw no heading |
| row-missing-blank | example | A change line that stays blank where it has no value, and a real gap that prints n/a |
| steering-theme-conventions | example | Theme table conventions with two open months and a heat-free cell |
| table-head-authored-case | example | Column heads in their authored case |
| table-frame-open-end | example | Rows that end on the card edge, with no end hairline and a light close |
| steering-hover-history | example | A year-to-date block whose hover card draws the fiscal years the table hides |
| group-span-row-spacer | example | Block headings over their whole span and a gap before the new year |
| narrow-tracks-widen | example | Weekly revenue keeps its written format, and its 44 px tracks widen to hold it |
| outline-marks-off | example | A region tree without outline marks, its head air from the theme |
| max-growth-capped | torture | A channel table whose columns grow at most 1.4 times when it fills a card |
| house-rule-colour | example | Head, total and close rules in the theme rule color while the axis ink stays gray |
| heat-absolute-cap | example | A heat lane on an absolute plan variance, saturating at 500, the total tinted as well |
| column-band-prior-year-shown | example | The prior-year months a host toggled on through columnVisibility |
| level-ladder-one-open | example | Only Subscriptions opened over a collapsed tree, each rung indented 24 px |
| unfoldable-parent | example | Core stays open at depth 0 because it is foldable: false; New ventures folds |
| sections-with-badges | example | Three section headings with a warn, a good and a neutral status chip, at a narrow width |
| collapsed-hint-narrow | example | A squeezed label column: one hint whole, one cut to its count, none running into the figures |
| wide-at-destination-width | example | Nine columns at the 1,050 px column they are shown in, with larger body text |
| regional-scorecard-states | torture | A strong forecast column, line and column sparklines, a bad section chip and every non-value cell state |
| cohort-heat-relative | example | Cohort retention on the since-acquisition axis, five-step ink ramp |
| cohort-heat-dark-top | example | Cohort retention in a dark theme, the top band at 78 % ink under dark figures |
| cohort-heat-calendar | example | The same cohorts on calendar time, closing on the active base |
| cohort-heat-diverging | example | Points above and below the column average, Moss over Rust |
| cohort-heat-status | example | Each cohort green, amber or red against the weighted average |
| cohort-heat-absolute | example | One scale for the whole grid: bins at 30, 40, 50 and 60 points |
| cohort-heat-blocks | example | Core columns once, three metric blocks over the same months |
| cohort-heat-sampled | example | Thirty-six cohorts on a sampled month axis, 20 px rows, 6 px before each January |
| cohort-heat-large | torture | Sixty cohorts, sixty months, two pinned core columns |
| cohort-heat-large-heat-only | torture | The same sixty by sixty with the figures off, grounds alone |
| mixed-units | torture | Money, counts and rates keep their own units |
| percent-points-declared | example | Low conversion rates declared in points |
| hierarchy-kinds | example | Member, measure and split presentation |
| row-label-text-cap | example | A row-label text cap with an indent and a unit affix |
| row-label-three-lines | example | Campaign names on three lines in a capped label track |
| long-campaign-names | example | Campaign names that wrap after _ and - in a capped label track |
| contribution-margin-statement | example | Contribution margin with signed costs and driver rows |
| pl-statement | example | An authored P&L, signed |
| pl-statement-operators | example | The P&L with operators and drivers |
| pl-statement-plain | example | The P&L as supplied |
| value-bands | example | Value bands color a numeric cell by the range its value is in |
| page-sticky-sections | example | The head pins to the page scroll 48 px down, and the active section label stays under it |
| scroll-sticky-sections | torture | The head and two columns pin inside the table scroll box, with the active section label under the head |
| driver-tones-grouped | torture | Drivers under a line show good and bad tones; a flat driver keeps the driver ink |
| driver-tones-always | example | Every driver shows its tones, the flat one too |
| driver-tones-never | torture | Drivers keep the driver ink, as before 0.28 |
| sticky-columns-only | torture | Two columns pin and the head does not |
| group-ground-expanded | example | Only the open group has the group ground; a folded group row looks like a normal row |
| group-ground-always | example | The group ground stays on a folded group row, as before 0.28 |
| group-ground-none | example | No group ground at all |
| frame-fill-values | example | Under rowExtent frame the value tracks grow until every layer ends at the frame edge |
| frame-fill-none | example | The old frame: columns keep their widths and an empty stretch carries the rows to the edge |
| height-fill-none | example | A pinned height keeps the rows at their natural height and leaves the rest empty |
| table-look-keys | example | A theme sets the quiet row rule, its width and the secondary ink; each open block opens on the rule ink |
| no-column-heads | example | No head row and no group heading: the first row starts at the top of the table |
| head-align | example | The figures stay right under a head set left |