Documentation · Thinking
Matrix table
Declare the columns, then each row and its cell values. Cells are text on purpose: an x, a number, a status or a sentence all work, and every one can be edited again on the sheet.
When to use it
Compare rows and columns using text, numbers or qualitative marks, with optional grouped headings.
A matrix cell is free-form text, not necessarily a numeric reading. Keep each row aligned with the same column structure.
Working example
Copy this complete example into the Source tab, then press Generate. Change its labels or values to make your first version.
matrix "Team skill matrix" {
corner "Name / Skill"
column "3-GEN" "GENBA KAIZEN"
column "3-MU" "GENBA KAIZEN"
column "7 Wastes" "GENBA KAIZEN"
column "KAIZEN" "GENBA KAIZEN"
column "Sort" "5S"
column "Set in order" "5S"
column "Shine" "5S"
column "Standardise" "5S"
column "Sustain" "5S"
row "Amir" "x" "" "x" "" "1" "" "" "" ""
row "Budi" "" "x" "" "x" "2" "" "" "" ""
row "Hasan" "x" "x" "" "" "" "1" "" "" ""
row "Tuti" "" "" "x" "" "" "" "x" "" ""
header vertical
header-height 112
row-header 140
size 900 540
}Syntax reference
The same reference used by the editor and AI briefing. Syntax is notation-specific; use the keywords listed here.
Matrix
| Syntax | Meaning |
|---|---|
matrix "Title" { | open a matrix table |
Columns
| Syntax | Meaning |
|---|---|
corner "Name / Skill" | caption in the top-left corner |
column "Safety" | one column heading |
column "3-GEN" "Kaizen" | a column under a spanning group heading |
column "Safety" "" "#2a78d6" | a heading with its own fill |
Rows and cells
| Syntax | Meaning |
|---|---|
row "Amir" "x" "" "Trainer" | one value per column; any text is valid |
row "Budi" { | open a row when cells need their own colours |
cell "High" "#00a86b" | one cell value and an optional fill |
color "#fff2cc" | the row heading's own fill, inside a row block |
Arrangement
| Syntax | Meaning |
|---|---|
header vertical | horizontal or vertical column labels |
align center | left, center, right |
row-header 140 | width of the headings down the left |
header-height 112 | height of the column labels |
Look
| Syntax | Meaning |
|---|---|
style headers | plain, headers, banded, heatmap |
header-color "#2a78d6" | shared column-heading colour |
row-color "#dce9f8" | shared row-heading colour |
cell-color "#fff2cc" | body fill for bands or a heatmap |
grid-color "#1f2933" | lines and the title |
border 1.5 | grid-line weight |
text 13 | caption size |
size 760 460 | how big the matrix is drawn |
# comment | line comment (also //) |
Language rules
- The file is one matrix "Title" { ... } block. Nothing may sit outside it.
- Declare columns first with column "Name"; an optional second caption groups consecutive columns under one spanning heading.
- A compact row is row "Name" "cell 1" "cell 2". It must not have more values than there are columns; omitted values are empty.
- When cells need colours, open a row block and write each as cell "anything" "#rrggbb". The colour is optional and the value remains text.
- A row block may also contain color "#rrggbb" for the heading down the left.
- Settings are written as name value, in any order.
- Do not invent settings. Every one the language has is listed above.
Edit on the canvas
- Double-click a heading or cell to edit it. Use the plus/minus controls to add or remove whole rows and columns.
- Set grouping, heading direction, colors and table style in the matrix panel.
Generate replaces the drawing from source. Save before generating again if you want to preserve manual finishing touches.
Read Saving & exportingWrite it with an assistant
Tingraph AI already knows this notation. For another assistant, copy the tutorial below, describe your diagram under MY DIAGRAM, then paste the returned source into the editor. This prompt includes every syntax row, rule and working example above.
Read the complete prompt
You are writing Tingraph source. Tingraph is a small text language that draws a matrix table. Answer with Tingraph source only.
SYNTAX
Matrix
matrix "Title" { open a matrix table
Columns
corner "Name / Skill" caption in the top-left corner
column "Safety" one column heading
column "3-GEN" "Kaizen" a column under a spanning group heading
column "Safety" "" "#2a78d6" a heading with its own fill
Rows and cells
row "Amir" "x" "" "Trainer" one value per column; any text is valid
row "Budi" { open a row when cells need their own colours
cell "High" "#00a86b" one cell value and an optional fill
color "#fff2cc" the row heading's own fill, inside a row block
Arrangement
header vertical horizontal or vertical column labels
align center left, center, right
row-header 140 width of the headings down the left
header-height 112 height of the column labels
Look
style headers plain, headers, banded, heatmap
header-color "#2a78d6" shared column-heading colour
row-color "#dce9f8" shared row-heading colour
cell-color "#fff2cc" body fill for bands or a heatmap
grid-color "#1f2933" lines and the title
border 1.5 grid-line weight
text 13 caption size
size 760 460 how big the matrix is drawn
# comment line comment (also //)
RULES
- The file is one `matrix "Title" { ... }` block. Nothing may sit outside it.
- Declare columns first with `column "Name"`; an optional second caption groups consecutive columns under one spanning heading.
- A compact row is `row "Name" "cell 1" "cell 2"`. It must not have more values than there are columns; omitted values are empty.
- When cells need colours, open a row block and write each as `cell "anything" "#rrggbb"`. The colour is optional and the value remains text.
- A row block may also contain `color "#rrggbb"` for the heading down the left.
- Settings are written as `name value`, in any order.
- Do not invent settings. Every one the language has is listed above.
WORKED EXAMPLE
matrix "Team skill matrix" {
corner "Name / Skill"
column "3-GEN" "GENBA KAIZEN"
column "3-MU" "GENBA KAIZEN"
column "7 Wastes" "GENBA KAIZEN"
column "KAIZEN" "GENBA KAIZEN"
column "Sort" "5S"
column "Set in order" "5S"
column "Shine" "5S"
column "Standardise" "5S"
column "Sustain" "5S"
row "Amir" "x" "" "x" "" "1" "" "" "" ""
row "Budi" "" "x" "" "x" "2" "" "" "" ""
row "Hasan" "x" "x" "" "" "" "1" "" "" ""
row "Tuti" "" "" "x" "" "" "" "x" "" ""
header vertical
header-height 112
row-header 140
size 900 540
}
OUTPUT
- Reply with one fenced code block and nothing else.
- The block starts with `matrix "…" {` and ends with `}`.
- Do not invent keywords: use only the ones listed above.
- Keep labels short enough to read inside a box, and keep every ID unique.
MY DIAGRAM
Describe what you want here, then send this message.Something unclear? Contact support or read the Privacy Policy.