Choropleth Layer
Rows joined onto boundaries (as Choropleth Join does) and filled by a color ramp over a column, its domain the column's minimum to maximum; a boundary with no value is gray.
Syntax
{ "id": "n1", "op": "choropleth", "name": "choropleth", "x": 0, "y": 0, "params": {} }
An edge into it ends at "targetPort": "in"; one out of it starts at "sourcePort": "out"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:lineWidth, or read elsewhere as ch('choropleth/lineWidth').
Inputs
| Port | Type | Takes |
|---|---|---|
in | table | one edge |
Parameters
| Parameter | Kind | Default | Choices |
|---|---|---|---|
geography | menu | "us-states" | us-states, world-countries, ca-provinces |
joinKey | column | "name" | |
geoKey | menu | "auto" | auto, name, abbrev, fips, iso2, iso3 |
valueColumn | column | "value" | |
colorScheme | menu | "viridis" | 18 choices |
stroked | toggle | true | |
lineColor | color | [0,0,0] | |
lineWidth | float | 1 | |
opacity | float | 0.85 |
Outputs
| Port | Type |
|---|---|
out | layer |
Details
- Category: Layers
- Operator:
choropleth
Older projects
Projects saved before documents used operator classes. These convert to choropleth when they open: ChoroplethLayerOp.