Choropleth
A dataset column joined onto a pack's regions — the geographic sibling of the graph's heatmap. regions: and values: name @data columns (#gdp.country, #gdp.gdppc); join keys match pack names and short codes (ISO alpha-3 on world, postal abbreviations on the admin-1 packs) case-insensitively, and regions the join does not cover keep the neutral land fill. A NUMERIC values column shades through the ramp, with a legend row pricing the region under the cursor; a TEXT column ENUMERATES — each distinct value becomes a category with its own flat hue, keyed by key:, and the legend lists the swatches.
#Attributes
in
The column to shade by: values: #gdp.gdppc. Numeric shades through the ramp; text enumerates categories (values: #vote.party).
colour
Default
The value window the ramp spans, e.g. [0, 60]; values outside clamp. Absent, the ramp spans the joined extrema. Animatable — !cue.to re-normalises the shading across steps.
key
#Derived attributes
Computed while the element renders — read one with #id.name in attribute position or !value:#id.name in prose, never set.
min
max
mean
count
#Allowed in
#Examples
choropleth#gdp(in: world; regions: #gdp.country; values: #gdp.gdppc)choropleth(in: world; regions: #anomaly.country; values: #anomaly.delta; colour: temperature; range: [-2, 2])choropleth#winner(in: canada-provinces; regions: #vote.province; values: #vote.party; key: Liberal red, Conservative blue, New Democratic orange)