Search documentation

Search all pages, headings and text, in the current package or topic or in all documentation.

Layers and measures

Area, point and context layers, measures per object, and the fill and size encodings.

@workspace/active-geo 0.4.0Developmentunreleased, in development in Foundationbaseline ce081dc3

Sites sized by their staffClient

Loading the map…

Layers#

typeHoldsInteractive
areafeatures: {key, name?, geometry, values?, details?}yes
pointpoints: {key, latitude, longitude, name?, values?, details?}yes
contextgeometries: areas and linesno

Area values can be inline (values) or joined by key from separate records (data), never both.

Measures#

A layer declares its measures: {id, label, semantics?} for a number (with the family's value semantics: count, money, percent, …) or {id, label, kind: 'category', categories}. A value per object is a number, a category id, missing (null or absent) or withheld ({suppressed: true}): a withheld value is never shown as a number.

Encodings#

  • Fill of areas (and points): {measure, scale} with a classed scale (threshold, quantize, category or diverging), or a constant colour. End classes are open.
  • Size of points: {measure, domainMax?, maxRadius?}: the area of a circle is proportional to the value; zero, missing and withheld draw a hollow marker.

The legend explains every encoding that needs it, including the special states (no value, withheld).

Text#

Tooltip, labels and the accessible description read the same fields: 'name', {measure}, {encoding: 'fill'}, {detail}. Labels on areas and points are placed so they do not collide.

This page as Markdown