Fork of Family Tree
✓ Published0🌍 Public
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 descriptionMIT Licensed