Numeric visualizations (color & size)
Numeric visualizations use a numeric attribute to either vary colors or sizes between ranges of values and are defined in FSL with "type": "numeric".
Ranges are calculated across discrete steps using a classification method, or on a continuous scale between an attribute’s min and max values. See Classification methods for the full list (jenks, quantiles, equal-intervals, stddev, geo-intervals, continuous) and how to express steps.
Color
Color numeric values in your data using the color property.
Stepped color
This map shows the percent of renter occupied housing units by US county. Each county is colored according to the step of ranges it falls into using a sequential color palette where light colors are assigned to low values and darker colors for high values.

The style for this map is defined
with the visualization
type: numericnumericAttribute: "Renter occupied (%)"and the computedstepsusing Jenks Natural Breaks over 5 classesthe sequential
@galaxypalette, which Felt expands to one color per class — light colors for low values, dark for high
Continuous Color
The map below shows average accumulated precipitation in the State of California between the years 1900 - 1960 and is colored along a continuous range between the min and max of the precipitation values.

In this case, the numeric style is applied using a continuous method.
In the
configblock,numericAttribute: PRECIPuses the{"type": "continuous"}steps shortcut, so values scale across the attribute's full min–max rangeThe
colorproperty uses the sequential@purpYlpalette, whose colors are interpolated to give each precipitation value a unique color
Numeric color also works on raster datasets, using band instead of numericAttribute — see Raster visualizations.
Size
Size numeric values in your point or line data using the size property.
Stepped size
The map below shows earthquakes over the past year sized with 5 manually defined steps.

In this case, the numeric style is applied using a classed method.
In the
configblock, thenumericAttribute: maghas manually-definedstepsfor 5 classesThe
sizeproperty has an array of five sizes, one for each defined class
Map link: Earthquakes Stepped Size
Continuous size
The map below shows tonnes of corn that have been exported from Ukraine since August 2022 under the UN’s Black Sea Grain Initiative. The symbol size for each country is proportionate to its value in the data.

To do this the min and max steps from the numericAttribute: tonnes are interpolated to be proportionately sized between a min and max point size — size:[5,48]
Notes on steps, color, and size
Let Felt compute breaks when you don't have the data in front of you:
"steps": {"type": "jenks", "count": 5}. Provide explicit breaks ([0, 3, 5, 7, 9]) when you know the values you want. See Classification methods.Classed arrays carry one value per class. With
Nbreak points you getN − 1classes, so explicitcolor/sizearrays needN − 1entries.Continuous
sizeis written as[min, max](e.g.[3, 30]) and scales smoothly; proportional-symbol sizes typically range 3–30 px for points. On lines,sizeis width in pixels (typically 1–20 px), not a radius.Continuous size legends use inverted indices for historical reasons:
"0"labels the maximum value,"1"the midpoint, and"2"the minimum (as in the example above). Continuous color legends run the intuitive way:"0"is the minimum. See Legends.Icons can vary by value too — set
iconImageand letsize(orcolor) carry the numeric variable:
Last updated
Was this helpful?