viz.line

Line chart of a value over an ordered column (time, distance, year).

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeRequiredDefaultDescription
tablefile (Parquet)yesTable to chart (Parquet or CSV).
xstringyesOrdered column for the x axis.
ystringyesValue column.
colorstringnoblankColumn with one line per value.
pointbooleannoFalseMark each data point.
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: "@line"
  name: viz.line
  inputs: [{block: "@plots", output: result, as: table}]
  args:
    x: year
    y: biomass
    color: species
    title: ''
    format: png