viz.histogram

Histogram of a numeric column.

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeRequiredDefaultDescription
tablefile (Parquet)yesTable to chart (Parquet or CSV).
xstringyesNumeric column to bin.
binsnumberno30Maximum number of bins.
colorstringnoblankColumn to colour bars by.
facetstringnoblankColumn to split into small multiples.
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: "@histogram"
  name: viz.histogram
  inputs: [{block: "@plots", output: result, as: table}]
  args:
    x: biomass
    bins: 20
    title: ''
    format: png