Skip to main content

Type Alias: ChoroplethValueAccessor()

ChoroplethValueAccessor = (feature, index) => number | null | undefined

Defined in: src/mobjects/geo/ChoroplethMap.ts:33

Reads the value a feature should be colored by. Return null/undefined (or a non-finite number) to color the feature with the no-data color.

Parameters​

feature​

GeoFeature

index​

number

Returns​

number | null | undefined