Skip to main content
100%

Force-Directed Tree

✓ Published0🌍 Public
SSputniza
Last edited Aug 5, 2016
Created on Aug 5, 2016

A force-directed tree visualizes a small hierarchical dataset of D3 module names as circles connected by lines. The graph is loaded from a local `graph.json` file containing nodes and links, and rendered to SVG using D3 v3’s `d3.layout.force` with a negative charge and link distance. During each tick, source nodes are pushed upward and target nodes downward to create a weak tree structure, while node colors come from a categorical `d3.scale.category20` fill. Circle radii are fixed, and strokes use a darker shade of the same fill.

AI-generated description

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/1138500'>Force-Directed Tree</a>

gpl-3.0 Licensed

Similar vizzes