Skip to main content
100%

Family Tree Visualization

✓ Published1🌍 Public
NNita
Last edited Feb 25, 2025
Created on Feb 25, 2025
Forked from HTML Starter

A family tree visualization displays six generations of a fictional family, from a pirate and Spanish princess to a young boy. It uses D3.js v7 to load CSV data with d3.csv, then positions individuals by generation, drawing dashed spouse connections and parent-child paths. Circles and text labels represent each person, while mouseover events trigger tooltips with details about spouses and children.

AI-generated description

Family Tree Visualization

This visualization displays a family tree across multiple generations using D3.js.

The data represents a fictional family spanning 6 generations, from a pirate and Spanish princess down to a young boy.

Features

  • Displays individuals organized by generation
  • Shows spousal relationships with dashed lines
  • Shows parent-child relationships
  • Includes tooltips with additional information
  • Fully responsive design

Implementation Details

The visualization uses:

  • D3.js v7 for creating the SVG elements and handling data
  • A CSV file for storing the family relationship data
  • Custom CSS for styling the tree elements

Data Structure

The data structure follows a simple format:

  • Generation: The generational level (1-6)
  • Individual: Name of the person
  • Spouse: Name of their partner
  • Children: Comma-separated list of their children's names
MIT Licensed

Similar vizzes