Skip to main content
100%

Force-Directed States of America

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 5, 2018
Created on Jan 5, 2017

A force-directed graph rearranges the lower 48 U.S. states using links derived from a Delaunay triangulation of their centroids. Gray state polygons and connecting lines render in SVG, with the layout computed by `d3.layout.force`. The code loads TopoJSON data via `d3.json` and uses `d3.geo.path` to project state shapes. Users can click and drag any state, causing the simulation to re-position the linked nodes dynamically.

AI-generated description

Click and drag to move states around.

So, what happens when you use the Delaunay triangulation to compute links between the centroids of the lower 48 United States of America? And then you simulate the whole thing as a force-directed graph? This, it turns out! Built with D3.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1073373'>Force-Directed States of America</a>

gpl-3.0 Licensed

Similar vizzes