Skip to main content
100%

World Map to US Map

✓ Published0🌍 Public
JJack Hanlon
Last edited Oct 24, 2024
Created on Oct 24, 2024
Forked from Simple World Map

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 description
MIT Licensed

Similar vizzes