Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of CSCE-5320: ICE-8 US Country map

Public visualization

Viewing a saved revision (read-only)

cd7acb754cd54c529bf0df6946dab819

Fork of CSCE-5320: ICE-8 US Country map

0 stars0🌍 Public
NNaveenParitala
Last edited Apr 10, 2022
Created on Apr 10, 2022

This example shows a map of US states rendered as SVG paths, with states filled white and outlined in black. Hovering over a state turns it goldenrod, revealing its name in a tooltip. The code uses D3 v5’s `geoAlbersUsa` projection and `geoPath` to draw the map, with TopoJSON’s `feature` method to parse state boundaries from the us-atlas counties-10m.json dataset. The map is loaded asynchronously via `json`, and interactions are handled through D3 event listeners on the path elements.

AI-generated description