Let's make a map with D3.js!
✓ Published2🌍 Public
This example renders a world map using D3.js and topojson, displaying country boundaries as light green shapes on a blue sphere. The visualization loads geographic data from the world-atlas TopoJSON file and converts it to GeoJSON features using the topojson `feature` function. D3’s `geoNaturalEarth1` projection and `geoPath` generator draw each country as an SVG path, with a separate path for the global sphere. The code uses the v5 API with imported functions from the d3 module, and styling applies stroke opacity to delineate borders.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed