Force Directed Graph - Simple
✓ Published1🌍 Public
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 descriptionA simple FDG to fork VizHub.
MIT Licensed