🌍 Public
Viewing a saved revision (read-only)
acfad8a73d0b4db38b7538b3e3e9951c
ICE8 - Family Tree
This example displays a family tree as an interactive hierarchical diagram using D3.js v3. The tree layout organizes nodes by generation, with each family member represented as a colored rectangle and labeled with their name. SVG elements render the nodes and links, while the data comes from a JSON file containing nested parent-child relationships. Clicking on nodes triggers zooming and dragging behavior via d3.behavior.zoom, and hovering reveals tooltips. The code employs d3.layout.tree for positioning and applies custom collision detection to prevent overlapping nodes.
AI-generated description