🌍 Public
Viewing a saved revision (read-only)
69e9e402ccae424bbc13e78350913b46
Animal Kingdom Tree - Assignment 8
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