Skip to main content
100%

ICE8 - Family Tree

✓ Published4🌍 Public
LLakshmiVandanaNunna
Last edited Apr 3, 2022
Created on Apr 2, 2022

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
MIT Licensed

Similar vizzes