Skip to main content
100%

Town/county switch with topojson

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 3, 2018
Created on May 22, 2017

A choropleth of New Hampshire toggles between town and county boundaries, fading town polygons to faint outlines while emphasizing county borders. The animation cycles automatically every 1.5 seconds. Using D3 v3 and TopoJSON, the code loads a local GeoJSON topology, renders paths via `d3.geo.path()` with a null projection, and transitions opacity on SVG elements. County meshes are derived from FIPS codes using `topojson.mesh()`.

AI-generated description

forked from <a href='http://bl.ocks.org/bycoffe/'>bycoffe</a>'s block: <a href='http://bl.ocks.org/bycoffe/e32cc94b26df9c5e28aa'>Town/county switch with topojson</a>

mit Licensed

Similar vizzes