viz.choropleth
Shade vector features by a column's value, in classes.
- Kind:
standard - Network: no
| Name | Type | Required | Default | Description |
|---|
vector | file (GeoJSON) | yes | | Features to draw (GeoJSON or GeoPackage). |
column | string | yes | | Column to shade by. |
scheme | string | no | viridis | matplotlib colour map name. |
classes | number | no | 5 | Number of classes. |
classification | string | no | quantile | How class breaks are chosen. One of quantile, equal_interval, natural_breaks. |
title | string | no | blank | Chart title. ${item.key} labels each chart inside a map. |
width | number | no | 8 | Figure width in inches. |
format | string | no | png | Image format. html is a static, self-contained page. One of png, svg, html. |
Outputs🔗
| Name | Type | Description |
|---|
map | file (PNG) | The map. |
Example🔗
- id: "@choropleth"
name: viz.choropleth
inputs: [{block: "@counties", output: vector, as: vector}]
args:
column: biomass
classification: natural_breaks
classes: 5