Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of ICE-8 World Map and USA Maps

Public visualization

Viewing a saved revision (read-only)

f7178dcd031b43fda4e8c85895338631

Fork of ICE-8 World Map and USA Maps

1 star0🌍 Public
EEeshwarReddy
Last edited Apr 10, 2023
Created on Apr 10, 2023

This interactive example lets users switch between a world map, US states, and US counties. The React component fetches TopoJSON data from the `world-atlas` and `us-atlas` CDNs, converts it to GeoJSON with `topojson.feature`, and renders SVG paths using `d3.geoPath` and either `d3.geoNaturalEarth1` or `d3.geoAlbersUsa` projections. Buttons toggle the active dataset and map type, with the SVG clearing and redrawing on each change.

AI-generated description

React Starter code.