Skip to main content
100%

d3.layout.force3d (a quick hack to get force layout into the third dimension)

✓ Published0🌍 Public
ZZJONSSON
Last edited May 17, 2012
Created on May 17, 2012

A force-directed graph layout extends into three dimensions using X3DOM for rendering. The visualization builds a network of spheres connected by lines within a 3D coordinate system with labeled axes. The layout uses two chained d3.layout.force simulations: one handling X/Y positioning and a second managing the Z-axis. Nodes are added dynamically as colorful spheres, with edges forming between new and existing nodes. This implementation demonstrates combining D3's force simulation with X3DOM's declarative 3D scene graph for interactive network exploration in spatial depth.

AI-generated description

This is a quick hack to be able to produce http://d3js.org force layout with a third dimension. I use two force layouts in combination, the first one for the x,y axis and the third one for the z axis (I enforce x=y at each step). Each chained action of the 3d force is then applied to both of the underlying forces. Finally I use X3DOM to render the visualization.

List of controls can be found here http://www.x3dom.org/?page_id=293

Similar vizzes