Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Animal Kingdom Tree - Assignment 8

Public visualization

Viewing a saved revision (read-only)

69e9e402ccae424bbc13e78350913b46

Animal Kingdom Tree - Assignment 8

0 stars0🌍 Public
AAKSHAY
Last edited Nov 9, 2025
Created on Nov 9, 2025
Forked from D3 Starter

This example presents a hierarchical tree diagram of the animal kingdom, with a red root node for Animals, teal nodes for Mammals and Birds, and yellow leaf nodes for individual species. The visualization uses D3.js v7’s `hierarchy`, `tree`, and `linkVertical` APIs to compute the layout and draw the SVG paths, while `select` and `attr` manage the rendering. The data is defined inline in JavaScript, and the tree is rendered as an SVG with circle nodes and text labels.

AI-generated description