Skip to main content
100%

Let's make a map of US-counties with D3.js:"hover and county name "

✓ Published4🌍 Public
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
MIT Licensed

Similar vizzes