Skip to main content
100%

Family Tree Loki ICE 8

✓ Published0🌍 Public
LLokeshBachu5
Last edited Apr 6, 2023
Created on Apr 6, 2023
Forked from Family Tree

This example displays an interactive family tree using a D3.js hierarchical layout, loading relationships from a JSON file and rendering them as an SVG with animated node expansion. The code uses `d3.layout.tree` to compute node positions, with custom tooltips and zoom/drag behavior via `d3.behavior.zoom`. Distinct node types are color-coded (blue, green, yellow, purple) based on the `type` field, and links include directional arrows. The visualization is built with D3 v3 and jQuery, demonstrating recursive tree traversal and dynamic sizing of the SVG container.

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