block by HarryStevens 4608d25b2f424a2e011d7ab9cc804f4e

Swiftmap Gradient Scheme

Full Screen

In Swiftmap, continuous schemes are used to map values of data to corresponding visual attributes along a continuum. You can use a continuous scheme to create a gradient color scale. In this example, each polygon is colored, alternatively, according to the horizontal or vertical position of its centroid. Because Swiftmap returns elements as D3 selections, it is easy to animate style transitions.

index.html