Matrix

Use a matrix for grouped rows and metrics, optionally split across a column dimension.

Key fields
visuals:
  status_matrix:
    type: matrix
    title: Orders by category and status
    query:
      type: pivot
      rows:
      - category
      columns:
      - status
      metrics:
      - order_count
      - revenue
    presentation:
      type: table
      rowHeight: 32
      showHeader: true
      striped: false

Conditional-format targets may name visible row fields or metric aliases. Column dimensions are used to generate the cross-tab headers and are not visible target columns.

API reference

Kind: grid. Renderer: tanstack. Supported result shapes: matrix_window.

FieldTypeDefaultAllowed valuesDescription
typestringtable matrix pivotSelects the tabular visual behavior.
querytabular querySelects record fields or grouped row, column, and metric fields.
cardinalitystringbounded exactControls whether the visual resolves an exact row count.
presentation.rowHeightintegerrequiredpositive integerSets the tabular row height.
presentation.showHeaderbooleantruetrue falseShows semantic table headers.

Accessibility. Tabular visuals expose semantic headers and virtualized rows while preserving keyboard navigation.