Skip to main content

Interface: ChoroplethMapOptions

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

Options for a ChoroplethMap.

Properties​

borderColor?​

optional borderColor: string

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

Border (stroke) color. Default: '#1b263b'.


borderWidth?​

optional borderWidth: number

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

Border width in pixels. 0 hides the border. Default: 1.


colorScale?​

optional colorScale: string[]

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

Reference colors for the fill scale (interpolated). Default: a blue ramp.


domain?​

optional domain: [number, number]

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

Fixed value domain [min, max]. Default: computed from the data.


fillOpacity?​

optional fillOpacity: number

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

Fill opacity from 0 to 1. Default: 1.


geojson​

geojson: GeoFeatureCollection

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

The GeoJSON feature collection to render.


noDataColor?​

optional noDataColor: string

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

Fill color used when a feature has no value. Default: Manim gray.


projection?​

optional projection: GeoProjection

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

Projection from lon/lat to 2D. Default: equirectangular().


value​

value: ChoroplethValueAccessor

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

Reads the numeric value per feature.