Ring Extraction
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Sep 2, 2013
This example animates the extraction of individual polygon rings from the U.S. states topology. It begins with a play button that, when clicked, hides the control and sequentially extracts each ring, drawing it in red and fading it out. The animation uses D3’s `transition`, `duration`, and `remove` methods alongside TopoJSON’s `topology` and `feature` APIs. The base map is rendered as a static SVG mesh via `d3.geo.path`, while the extracted rings are appended as separate SVG paths. The underlying data is a simplified `us.json` TopoJSON file of U.S. states.
AI-generated descriptionStep 1 of 4 of topology construction. From How To Infer Topology.
gpl-3.0 Licensed