D3 Geo Projections Explained 🗺

D3 is used extensively for drawing geographic visualizations. D3 uses GeoJSON for representing shapes on maps. This post explains how we can use D3 to convert GeoJSON, that looks like this: { "type": "FeatureCollection", "features": [{ "type": "Feature", "properties": { "subunit": "Albania", "su_a3": "ALB", //... //... }, "geometry": { "type": "Polygon", "coordinates": [ [ [20.590247430104906, 41.855404161133606], // ... [20.590247430104906, 41.855404161133606] ] ] } } into a rendered SVG element, that looks like this:...

 · Soham Kamani