Skip to main content
100%

U.S. States TopoJSON

✓ Published0🌍 Public
Mmbostock
Last edited Dec 16, 2019
Created on Nov 16, 2012

This example shows a map of the United States rendered as SVG paths, where individual states turn red when hovered. The map uses the TopoJSON `us-atlas` file, loaded via `d3.json`, and the code relies on the `topojson` library to convert the TopoJSON topology into geographic features. The rendering is done with `d3.geoPath` to project the geometry, and state borders are drawn as a separate path using a mesh that highlights each boundary. No interaction beyond the hover effect is implemented.

AI-generated description

This map demonstrates the TopoJSON us-atlas. The same TopoJSON file can also be used to show counties.

gpl-3.0 Licensed

Similar vizzes