Spherical Force-Directed Layout
A force-directed graph of 100 nodes and their links is projected onto a sphere using D3 v3’s `d3.geo.path` and a selectable geo projection (e.g., orthographic, mercator). The force layout positions nodes in 3D spherical space, and the SVG paths render the resulting network, with node colors from a categorical scale. A dat.GUI panel lets users switch projections, toggle clipping, and adjust force parameters like link distance and charge. Dragging rotates the projection instead of moving nodes.
AI-generated descriptionCreated by Christopher Manning
Summary
Draws a force directed graph using svg:path and geo projections onto a sphere.
TODO
- Make links in rectangular projection wraparound
- Fix node replusion in azimuthal projections
- Fix node dragging in azimuthal projections
References
forked from <a href='http://bl.ocks.org/christophermanning/'>christophermanning</a>'s block: <a href='http://bl.ocks.org/christophermanning/4208494'>Spherical Force-Directed Layout</a>
forked from <a href='http://bl.ocks.org/anonymous/'>anonymous</a>'s block: <a href='http://bl.ocks.org/anonymous/dd766c854e2b89a8a912'>Spherical Force-Directed Layout</a>