block by mbostock 048d21cf747371b11884f75ad896e5a5

ColorBrewer Spline

Full Screen

Using uniform one-dimensional b-splines to interpolate in RGB color space, we can convert a discrete color scheme to a continuous one. This shows the “PiYG” scheme from ColorBrewer which has eleven original colors. This scale, and many more, are available in d3-scale-chromatic.

index.html