Automatic continuous area cartogram deformation of topojson layers in d3.carto.map using Shawn Allen’s d3.cartogram.
This is available (as long as you call cartogram.js) with map.continuousCartogram(topojsonLayer, attributeAccessor). You can change the mode by clicking the buttons and re-run the cartogram by clicking cartogram.
The cartogram doesn’t seem to work so well in mercator projection and if anyone knows why, I’d love to hear a reason.
This example uses yet another variation on d3.svg.legend.