Family Tree
✓ Published5🌍 Public
This example presents an interactive family tree visualization rendered as a collapsible hierarchy of boxes and links. It demonstrates how D3.js v3, jQuery, and local ES6 modules work together to load data from a JSON file and display it as an SVG tree. The code uses D3’s tree layout, zoom and drag behavior, and custom arrow definitions to show parent-child relationships. Node colors vary by type, and the layout dynamically adjusts its size based on the tree’s depth and width.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed