🌍 Public
Let's make a map with D3.js!
This example creates an interactive orthographic map of the world using D3.js v5 and TopoJSON. It loads world country boundaries from the world-atlas dataset and renders them as SVG paths with a blue ocean background and green landmasses. The code uses `d3.geoOrthographic` for the projection and `d3.geoPath` to generate the geographic paths. Country features are extracted with TopoJSON’s `feature` method and bound to SVG path elements, producing a simple, static globe visualization.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.