Skip to main content
100%

Fork of Tree

✓ Published0🌍 Public
SSaiSreya1
Last edited Jul 10, 2022
Created on Jul 9, 2022
Forked from Tree

This visualization displays a hierarchical tree structure from a JSON data file, representing cartoon characters and their relationships. The tree branches from a central root node, with child nodes extending outward horizontally. Each node is labeled with its character's name and colored according to the `color` property in the data, while gray connecting lines link parent and child nodes. The implementation uses D3 v5's `json()`, `hierarchy()`, `tree()`, and `linkHorizontal()` APIs to parse the data, compute the layout, and draw the SVG paths and text elements. The visualization also includes zoom functionality through the `zoom()` API, allowing interactive exploration of the tree.

AI-generated description
MIT Licensed

Similar vizzes