matrix
GraphMatrix
A grid of exact numbers with labels on both axes. Write a Markdown table. For shaded intensities use Heatmap, and for yes/no features use Compare.
- use it
- Good when both axes are labels and the cells are exact numbers.
detect
PosNeg
- Pos413
- Neg254
<GraphMatrix title="DETECT" accent="Pos">
| | Pos | Neg |
| --- | --- | --- |
| Pos | 41 | 3 |
| Neg | 2 | 54 |
</GraphMatrix>install
command
latency
iadsfonrt
- read121841
- write283367
- queue469
<GraphMatrix title="P95" accent="write">
| | iad | sfo | nrt |
| --- | --- | --- | --- |
| read | 12 | 18 | 41 |
| write | 28 | 33 | 67 |
| queue | 4 | 6 | 9 |
</GraphMatrix>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| columns | string[] | "Pos Neg" | — | Column headings across the top. |
| rows | MatrixRow[] | — | label plus one number or string per column. Optional when children are Markdown. |
| children | Markdown | — | | | Pos | Neg | | --- | --- | --- | | Pos | 41 | 3 | |
| accent | string | — | Row label to highlight. Other rows recede. |
| palette | "mono" | "duo" | "multi" | "mono" | mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents. |
| corner | string | "+" | Character at each corner of the frame. |
| frame | "box" | "corners" | "rule" | "none" | "box" | box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content. |
| className | string | — | Passed to the outer frame. |