This example shows one way to plot the centroids of geometies using d3.path.centroid. You can also pan and zoom.
The idea here is to provide a starting point for sized donut charts, or Polar Area Small Diagrams, for all countries, on a map. The centroids however are not quite right. The US looks off-center, skewed I suppose by Alaska.
forked from mbostock's block: Equirectangular (Plate Carrée)
forked from curran's block: Invitations Links Map
Built with blockbuilder.org
https://d3js.org/d3.v3.min.js
https://d3js.org/topojson.v1.min.js