mapmap.js
mapmap.js copied to clipboard
Jenks Natural Breaks scale
trafficstars
d3.js unfortunately lacks the Jenks Natural Breaks as a scale for choropleth maps. There is a very well documented implementation of the algorithm available at https://github.com/simple-statistics/simple-statistics
you can read more about the background story at http://www.macwright.org/2013/02/18/literate-jenks.html
and see it in action https://www.destatis.de/zensuskarte/index.html
See also: https://stat.ethz.ch/R-manual/R-devel/library/base/html/pretty.html