🌍 Public
Viewing a saved revision (read-only)
53d4c2da8c0f4ddd9c54d7adec2c67d2
Let's make a map of US-counties with D3.js:"hover and county name "
NNita
Last edited Dec 1, 2020
Created on Dec 1, 2020
This example displays an interactive map of U.S. counties rendered as SVG paths, with each county’s name appearing as a tooltip on hover. The map uses the `geoAlbersUsa` projection and `geoPath` from D3 v5, while TopoJSON’s `feature` method extracts county geometries from the us-atlas counties-10m.json dataset. Hovering highlights the county in green via a CSS `:hover` rule. The visualization depends on D3’s `select` and `json` utilities to fetch and bind the geographic data.
AI-generated description