Skip to main content

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​

PortTypeTakes
intableone edge

Parameters​

ParameterKindDefaultChoices
geographymenu"us-states"us-states, world-countries, ca-provinces
joinKeycolumn"name"
geoKeymenu"auto"auto, name, abbrev, fips, iso2, iso3
valueColumncolumn"value"
colorSchememenu"viridis"18 choices
strokedtoggletrue
lineColorcolor[0,0,0]
lineWidthfloat1
opacityfloat0.85

Outputs​

PortType
outlayer

Details​

  • Category: Layers
  • Operator: choropleth

Older projects​

Projects saved before documents used operator classes. These convert to choropleth when they open: ChoroplethLayerOp.