viz.heatmap

Heat map of a value over two category columns.

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeRequiredDefaultDescription
tablefile (Parquet)yesTable to chart (Parquet or CSV).
xstringyesColumn for the x axis.
ystringyesColumn for the y axis.
valuestringyesNumeric column to shade by.
aggregatestringnomeanHow to combine rows sharing a cell. One of sum, mean, median, min, max, count.
schemestringnoviridisVega colour scheme name.
titlestringnoblankChart title. ${item.key} labels each chart inside a map.
widthnumberno600Width in pixels.
heightnumberno400Height in pixels.
formatstringnopngImage format. html is a static, self-contained page. One of png, svg, html.

Outputs🔗

NameTypeDescription
chartfile (PNG)The rendered chart.
specjson (Vega-Lite)The Vega-Lite spec the block built; edit it and render with viz.vegalite.

Example🔗

- id: "@heatmap"
  name: viz.heatmap
  inputs: [{block: "@plots", output: result, as: table}]
  args:
    x: state
    y: species
    value: biomass
    title: ''
    format: png