This post describes how to build a very basic choropleth map of the world with d3.js. Note that the same kind of code would work with any geospatial data stored in geojson
format. You can see many other examples in the choropleth map section of the gallery.