viz.choropleth

Shade vector features by a column's value, in classes.

  • Kind: standard
  • Network: no

Inputs🔗

NameTypeRequiredDefaultDescription
vectorfile (GeoJSON)yesFeatures to draw (GeoJSON or GeoPackage).
columnstringyesColumn to shade by.
schemestringnoviridismatplotlib colour map name.
classesnumberno5Number of classes.
classificationstringnoquantileHow class breaks are chosen. One of quantile, equal_interval, natural_breaks.
titlestringnoblankChart title. ${item.key} labels each chart inside a map.
widthnumberno8Figure width in inches.
formatstringnopngImage format. html is a static, self-contained page. One of png, svg, html.

Outputs🔗

NameTypeDescription
mapfile (PNG)The map.

Example🔗

- id: "@choropleth"
  name: viz.choropleth
  inputs: [{block: "@counties", output: vector, as: vector}]
  args:
    column: biomass
    classification: natural_breaks
    classes: 5