Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of World Map Simple

Public visualization

Viewing a saved revision (read-only)

5ba948c1d3224bd09ddc5bc18fcbc1f5

Fork of World Map Simple

0 stars0🌍 Public
JJingxuan Yang
Last edited Feb 28, 2024
Created on Feb 28, 2024
Forked from Simple World Map

This example visualizes the contiguous United States with a geographical projection, showing both country outlines and a graticule grid. It uses the `geoAlbersUsa` projection and `geoPath` from d3-geo to render the shapes, while topojson-client converts the TopoJSON data from the us-atlas package into GeoJSON features. The visualization loads state data asynchronously, displaying the map once the fetch completes, and redraws it whenever new data arrives. The code highlights a simple pattern for integrating D3 with React through a state-driven update cycle.

AI-generated description
MIT Licensed