Skip to main content
100%

Force Directed Graph - Simple

✓ Published1🌍 Public
JJimMaltby
Last edited Dec 11, 2020
Created on Dec 11, 2020

A force-directed graph displays hierarchical data through a network of linked nodes. The example loads a flat CSV file, converts it into a tree hierarchy using `d3.stratify`, and renders it with SVG paths and circles. The layout is computed by `d3.tree`, with curved links drawn between parent and child nodes. The visualization uses `d3.csv`, `d3.hierarchy`, and `d3.select` to structure and display the data from `data.csv`, showing relationships from "Top Level" down to individual leaf nodes.

AI-generated description

A simple FDG to fork VizHub. To help work out using flat data for hiearchies

MIT Licensed

Similar vizzes