World Map to US Map
✓ Published0🌍 Public
This example visualizes a world map using the Natural Earth projection, drawing country boundaries as stroked paths over a graticule grid with an outline. It fetches TopoJSON data from the `visionscarto-world-atlas` package, converts it to GeoJSON using `topojson.feature`, and renders it with `d3.geoNaturalEarth1`, `d3.geoPath`, and `d3.geoGraticule`. The React-based code manages loading state via `setState`, updating the SVG when data arrives.
AI-generated descriptionA basic world map.
See also:
MIT Licensed