Skip to main content
100%

d3 + TopoJSON

✓ Published0🌍 Public
AAlan McConchie
Last edited Nov 4, 2016
Created on Nov 4, 2016

This example displays a map of U.S. counties rendered as SVG paths, with each county filled in light gray and outlined in white. Hovering over a county turns it red. The visualization loads a TopoJSON file from a GitHub gist, converts it to GeoJSON using the `topojson.feature` method, and draws the features with `d3.geo.path()` in D3 v3. The map uses the default projection provided by D3’s geographic path generator.

AI-generated description

Working with TopoJSON and d3.js projections for mapping geospatial data.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4122298'>U.S. Counties TopoJSON</a>

gpl-3.0 Licensed

Similar vizzes