Interface: ChoroplethMapOptions
Defined in: src/mobjects/geo/ChoroplethMap.ts:39
Options for a ChoroplethMap.
Properties
borderColor?
optionalborderColor:string
Defined in: src/mobjects/geo/ChoroplethMap.ts:53
Border (stroke) color. Default: '#1b263b'.
borderWidth?
optionalborderWidth:number
Defined in: src/mobjects/geo/ChoroplethMap.ts:55
Border width in pixels. 0 hides the border. Default: 1.
colorScale?
optionalcolorScale:string[]
Defined in: src/mobjects/geo/ChoroplethMap.ts:45
Reference colors for the fill scale (interpolated). Default: a blue ramp.
domain?
optionaldomain: [number,number]
Defined in: src/mobjects/geo/ChoroplethMap.ts:47
Fixed value domain [min, max]. Default: computed from the data.
fillOpacity?
optionalfillOpacity: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?
optionalnoDataColor:string
Defined in: src/mobjects/geo/ChoroplethMap.ts:51
Fill color used when a feature has no value. Default: Manim gray.
projection?
optionalprojection: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.