Status matrix chart reference

Status matrix examples

Contents: Use cases, Chart IDs, Minimal spec, Data, Options, Annotations, Sizing, Fixtures, Not for.

Entity × period matrix with discrete semantic states, visible sparse cells, and truthful state keys. Type status.

Use cases

Chart IDs

One form; its chart ID is status.

Minimal spec

{
  "type": "status",
  "data": {
    "rows": [{ "id": "pricing", "label": "Pricing" }, { "id": "service", "label": "Service" }],
    "columns": [{ "id": "design", "label": "Design" }, { "id": "pilot", "label": "Pilot" }],
    "cells": [
      { "row": "pricing", "col": "design", "state": "done" },
      { "row": "pricing", "col": "pilot", "state": "open" },
      { "row": "service", "col": "design", "state": "open" }
    ]
  },
  "options": {
    "states": [
      { "id": "done", "label": "Done", "tone": "good" },
      { "id": "open", "label": "Open", "tone": "neutral" }
    ],
    "title": "Pricing design is done; pilot work remains open",
    "source": "Illustrative data"
  }
}

Data

A cell is a number, null or a value object; see Value cell.

PathTypeRequiredMeaning
rowsarrayyesMatrix rows displayed in the supplied order.
rows[].idstringyesUnique matrix-row identity referenced by cells.
rows[].labelstringDisplayed matrix-row name; defaults to its id.
columnsarrayyesMatrix columns displayed in the supplied order.
columns[].idstringyesUnique matrix-column identity referenced by cells.
columns[].labelstringDisplayed matrix-column name; defaults to its id.
cellsarrayyesUnique row/column bindings to declared states; unbound positions remain missing.
cells[].rowstringyesId of the matrix row containing this cell.
cells[].colstringyesId of the matrix column containing this cell.
cells[].statestringyesId of a state declared in options.states.
cells[].valuecellOptional value printed under the state label, or alone when the cell is too small for both. A value object can set its own format, such as { number: 97.5, format: '1.0%' }.

Options

PathTypeValuesDefaultMeaning
labelsfalse | objectfalse (or another value of its type)False hides cell state and value labels. Row and stage names remain. series: false hides row names; category: false hides stage names. When the state key is drawn and color or hatch tells the states apart, the key names them and the cells print no state names, unless labelDensity is 'full'; then the names print at the largest type step where all of them fit, and if no step fits they stay off with a label-hidden warning and one reading.omissions entry per state. Otherwise state names print in every bound cell only when all of them fit; else the key names states.
legendstring | object'top', 'bottom', 'right', 'left', 'none' (or another value of its type)State-legend placement, or none to suppress the legend while cells name every used state. A required key remains when cell state names are not drawn, including a one-state matrix. A grid panel's explicit none leaves the state key with the host.
legend.positionstring'top', 'bottom', 'right', 'left'Place the categorical state legend at the top or bottom, or in a column beside the matrix.
statesarrayOne to six declared categorical states defining cell meaning, legend labels and paint.
states[].idstringUnique state identity referenced by matrix cells.
states[].labelstringVisible state name used by the legend and the accessible description. The description lists each state with its cell count, as 'On track 12', then 'No status 3' for empty cells; the reading carries each count as a derived claim with that text.
states[].tonestring | object'good', 'bad', 'neutral', 'warn', 'info' (or another value of its type)Semantic verdict tone, or an explicit theme role for the state fill.
states[].tone.rolestringNamed semantic theme color role for this state.
states[].patternstring'hatch45'Optional 45-degree hatching to distinguish this state beyond color.
columnLabelsstring'top', 'bottom''top'Column-caption position; defaults to top.
columnOverridesobjectSettings per generated column. Ids: label, each data.columns id.
columnOverrides.*.widthnumberTrack width in px. It beats the width the type would pick.
columnOverrides.*.alignstring'left', 'right', 'center'Alignment of the column: its cell text and, unless headAlign is set, its head. Bars keep starting at the panel origin.
columnOverrides.*.headAlignstring'left', 'right', 'center'Head alignment; defaults to align.
columnOverrides.*.labelstringHead text.

Plus the shared options. This type does not accept detailFields, labelPosition, valueAxis, rounding, annotations. This type ignores animate, debug, rowLabels, categoryAxis, categoryLabels, secondaryAxis, sort, topN, bandFraction, valueAxis.show, valueAxis.gridlines with an option-ignored warning.

Annotations

This type takes no annotations.

Sizing

Floor 280 × 28 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

IDKindUse case
central-bank-decisionstortureCentral-bank policy decisions: 24 entities × 60 monthly periods
programme-rollout-ragexampleConsulting program rollout RAG board with sparse future gates
capability-assessmentexampleCapability assessment with a patterned unverified state
review-status-legend-nonetortureReview status with one explained state and no legend
review-status-legend-rightexampleReview status with a state legend in a column beside the grid
review-status-legend-bottomtortureReview status with a bottom legend
review-status-legend-toptortureReview status with a top legend
torture-long-labelstortureTorture: long names at a generous size read whole, never cut
programme-rollout-rag-dark-fillstortureRAG board on a dark theme with colorblind fill roles
rag-forecast-hatchedtortureRAG board with each tone plain and hatched beside cells without a status
review-status-legend-objecttortureReview status with the legend placed above through a position object
status-with-valuestortureState cells include their measured values
capability-assessment-full-filltortureCapability board with good and neutral cells in their full colors
column-widthsexampleA wider last column, aligned heads and a renamed head

Not for

Numeric magnitudes; status cells hold discrete states.