Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

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

1 star4🌍 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

Comments

Sign in to join the discussion.

MIT Licensed