Fork of Topojson World Map
✓ Published0🌍 Public
This example shows a world map rendered with a natural Earth projection, displaying country boundaries as green filled paths with subtle black strokes. The visualization loads geographic data from the world-atlas TopoJSON file and converts it to GeoJSON features using topojson’s `feature` method. The map is drawn with d3.geoPath and the d3.geoNaturalEarth1 projection, while a spherical outline is added as a distinct path. The code leverages d3.v5’s selection and data-joining capabilities to append each country’s path to an SVG.
AI-generated descriptionMIT Licensed