viz.scatter

Scatter plot of two numeric columns, with an optional trend line.

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeRequiredDefaultDescription
tablefile (Parquet)yesTable to chart (Parquet or CSV).
xstringyesNumeric column for x.
ystringyesNumeric column for y.
colorstringnoblankColumn to colour points by.
sizestringnoblankNumeric column to size points by.
trendstringnononeTrend line to fit. One of none, linear, loess.
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: "@scatter"
  name: viz.scatter
  inputs: [{block: "@plots", output: result, as: table}]
  args:
    x: height
    y: biomass
    trend: linear
    title: ''
    format: png