Skip to main content
100%

Family Tree

✓ Published5🌍 Public
AAditya Pujari
Last edited Apr 4, 2022
Created on Apr 3, 2022
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes