Skip to content

ClassifyConfig

Defined in: packages/core/src/schemas/classify.schema.ts:55

The validated classify: block, as authored.

PropertyTypeDescriptionDefined in
breaks?number[]Explicit step thresholds, strictly ascending.packages/core/src/schemas/classify.schema.ts:63
categories?Record<string, string> | (string | number | boolean)[]Categorical form: { value: colour }, or a list of values coloured from the palette.packages/core/src/schemas/classify.schema.ts:69
classes?numberClass count for method: (default 5).packages/core/src/schemas/classify.schema.ts:67
colors?string[]Explicit colours, one per class (or per category).packages/core/src/schemas/classify.schema.ts:73
fieldstringThe feature property to classify.packages/core/src/schemas/classify.schema.ts:57
format?NumberFormatOptionsLegend number formatting, with MapLibre number-format option names.packages/core/src/schemas/classify.schema.ts:85
method?stringCompute the breaks from the data (GeoJSON sources only).packages/core/src/schemas/classify.schema.ts:65
multiply?numberMultiply the rate (e.g. 100000 for “per 100,000”). Needs normalize:.packages/core/src/schemas/classify.schema.ts:61
noData?stringMissing / non-numeric values: a colour (default light grey) or hide.packages/core/src/schemas/classify.schema.ts:81
normalize?stringDivide field by this property: classify a rate, not a count.packages/core/src/schemas/classify.schema.ts:59
other?stringCategories not listed: a colour (default grey) or hide.packages/core/src/schemas/classify.schema.ts:83
palette?stringA palette name: ColorBrewer (Blues, YlGnBu, RdBu, Set2 …), viridis, cividis, okabe-ito.packages/core/src/schemas/classify.schema.ts:71
property?stringThe colour paint property to drive (default <type>-color).packages/core/src/schemas/classify.schema.ts:77
radius?number[]Graduated symbols: one circle-radius per class (circle layers).packages/core/src/schemas/classify.schema.ts:79
reverse?booleanReverse the named palette (dark to light).packages/core/src/schemas/classify.schema.ts:75