Classification methods
Numeric, H3, and raster (numeric and tinted hillshade) visualizations all turn a range of values into discrete classes (or a smooth gradient) using the steps field in the config block. The classification method decides where the breaks between classes fall.
Methods
continuous
Smooth gradient, no discrete classes
Proportional symbols, smooth color ramps
jenks
Natural breaks — minimizes variance within each class
Most cases; a good starting point
quantiles
Equal number of features in each class
Balanced representation, evenly distributed data
equal-intervals
Equal-sized value bins
When the value ranges themselves matter
stddev
Classes in 1σ steps with the middle class centered on the mean
Data with a near-normal distribution
geo-intervals
Break points in a geometric progression between min and max
Multiplicative, strongly skewed data (values must be non-negative)
All shortcut methods except continuous require a count. Raster algebra visualizations support only continuous and equal-intervals.
Specifying steps
There are two ways to define steps.
Shortcut (recommended when you don't know the data's distribution). Name a method and a class count and let Felt compute the break points from the data:
{
"config": {
"numericAttribute": "population_density",
"steps": {"type": "jenks", "count": 5}
}
}For a smooth gradient, use the continuous shortcut:
Explicit break points (when you know the values you want). Provide the break points directly:
How breaks map to colors and sizes
Classed:
Nbreak points produceN − 1classes. An explicitcolororsizearray must therefore have exactlyN − 1entries. (A palette shortcut such as@galaxyis expanded for you.)Continuous: provide 2 or more colors and Felt interpolates between them across the full value range. For proportional symbols, give
size: [min, max]and sizes scale smoothly between those two values.
See Numeric visualizations for full color and size examples, and Colors & palettes for palette choices.
Last updated
Was this helpful?