🌍 Public
Lets make a map!
This example renders a world map using a natural Earth projection, displaying countries as light green filled regions with subtle black borders against a dark blue sphere background. The visualization loads geographic data from the world-atlas TopoJSON dataset and uses D3 v5’s `geoPath` and `geoNaturalEarth!` projection, along with the `topojson` library’s `feature` method to convert TopoJSON into GeoJSON. The SVG output is generated through a React setup, with the sphere drawn first and country boundaries appended dynamically after data loads.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.
MIT Licensed
Comments
Sign in to join the discussion.