Spherical Force-Directed Layout
This example shows a force-directed graph whose nodes and links are wrapped onto a sphere, with the sphere’s rotation controlled by drag. The layout uses D3’s force simulation (`d3.layout.force`) to position nodes, while each node and link is rendered as an SVG path transformed by a geo projection (`d3.geo.path`). The interface, built with dat.GUI, lets users switch among projections (e.g., Orthographic, Mercator) and adjust force parameters (link strength, distance, gravity) in real time.
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/sandravizmad/'>sandravizmad</a>'s block: <a href='http://bl.ocks.org/sandravizmad/ac3154b87b9dbca0c1f9518f45f095fa'>Spherical Force-Directed Layout</a>