Let's make a world map with D3.js!
✓ Published1🌍 Public
This example displays a world map rendered as an SVG, with countries filled in green and oceans represented by a turquoise sphere background. It uses D3 v5’s `d3.geoNaturalEarth1` projection and `d3.geoPath` to generate the geographic paths from TopoJSON data loaded from the world-atlas package. The code converts TopoJSON features into GeoJSON using topojson’s `feature` method, then binds and appends country paths to the SVG. A linked video tutorial accompanies the visualization.
AI-generated descriptionMIT Licensed