Skip to content

Heatmap

GraphHeatmap

Labeled rows and columns with the same intensity glyphs as Activity. Punchcards, hours, anything 2d.

Command

pnpm dlx shadcn@latest add <origin>/r/graph-heatmap.json

Punchcard

Same glyphs as Activity. Low intensity uses the second hue.

[ DEPLOYS ]
048121620
  • Mon
  • Tue
  • Wed
  • Thu
  • Fri
  • Sat
  • Sun

LessMore

Coverage

Lock max so two heatmaps share a scale.

[ TESTS ]
abcd
  • auth
  • billing
  • docs

Props

PropTypeDefaultDescription
titlestringCaption drawn on the top edge of the frame.
columnsstring[]Column headers, left to right.
rowsHeatRow[]label plus a value per column.
maxnumberLock the intensity scale across charts.
legendbooleantrueLess / more glyph key.
captionstringOptional note under the matrix.
glyphs"shade" | "ascii" | "hash" | "bar" | string[]"shade"Character set. shade is ·░▒▓█. ascii is .- =#@. Pass a preset or your own characters.
palette"mono" | "duo" | "multi""mono"mono is one accent plus muted. duo paints the second series with --graph-accent-2. multi cycles three accents.
cornerstring"+"Character at each corner of the frame.
classNamestringPassed to the outer frame.