Skip to main content
100%

Force Directed Graph - Simple

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

This example displays a simple force-directed graph built from a CSV file containing hierarchical data, showing parent-child relationships as an interactive tree layout with curved links and labeled circular nodes. The code uses d3.v5’s `d3.csv`, `d3.stratify`, and `d3.hierarchy` to transform the flat tabular data into a tree structure, which is then rendered as an SVG via the `d3.tree()` layout. Nodes are drawn as circles with text labels, connected by cubic Bézier paths, with styling applied through CSS classes.

AI-generated description

A simple FDG to fork VizHub.

MIT Licensed

Similar vizzes