Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Country map

Public visualization

Viewing a saved revision (read-only)

e7214ef9f3254772ac422ee33ed53048

Country map

0 stars1🌍 Public
SSaiSree0122
Last edited Jul 9, 2022
Created on Jul 9, 2022
Forked from HTML Starter

This example displays a map of the United States with state boundaries rendered as SVG paths. Using D3’s `geoPath` and the `geoAlbersUsaTerritories` projection, it draws land areas in burlywood and state interior borders in teal. Geographic data comes from the `us-atlas` TopoJSON file, processed with `feature` and `mesh` from TopoJSON. The React component structure uses hooks (`useState`, `useEffect`) via `useData` to load and pass the map data to the `Marks` component.

AI-generated description