Skip to main content
100%

Fork of Family Tree

✓ Published0🌍 Public
MM
Last edited Mar 28, 2024
Created on Mar 28, 2024
Forked from Family Tree

This example visualizes a network of animal relationships as a static, force-directed graph. The code loads a CSV dataset from a remote GitHub Gist, maps the `Animal1` and `Animal2` columns into link pairs, and extracts unique animal names as nodes. An SVG container holds the graph, where nodes are drawn as filled circles and links as lines. The layout is computed using the `d3.forceSimulation` API with `d3.forceLink`, `d3.forceManyBody`, and `d3.forceCenter` forces, and nodes are draggable via `d3.drag`. All rendering is done directly as SVG elements within the 800-by-600 viewport.

AI-generated description
MIT Licensed

Similar vizzes