topogram

Create continuous area cartograms with TopoJSON and D3

Usage no npm install needed!

<script type="module">
  import topogram from 'https://cdn.skypack.dev/topogram';
</script>

README

Topogram

This is a JavaScript implementation of an algoritm to construct continuous area cartograms, by James A. Dougenik, Nicholas R. Chrisman and Duane R. Niemeyer, ©1985 by the Association of American Geographers. It relies heavily on d3 for rendering and TopoJSON both for writing and reading topological JSON geodata.

The included example combines TopoJSON-encoded and boundaries of the United States from Natural Earth with 2011 US Census population estimates to size each state proportionally.