Skip to main content

Function: animateChoropleth()

animateChoropleth(map, toValue, options?): AnimateChoropleth

Defined in: src/mobjects/geo/AnimateChoropleth.ts:101

Create an AnimateChoropleth. Convenience factory matching the scene.play(animateChoropleth(map, toValue, { runTime })) call shape.

Parameters​

map​

ChoroplethMap

The map to recolor.

toValue​

ChoroplethValueAccessor

Reads the new numeric value per feature.

options?​

AnimateChoroplethOptions

Run time and rate function.

Returns​

AnimateChoropleth

The animation.