Skip to main content
100%

Tree

✓ Published0🌍 Public
Ssumitradevipolina
Last edited Apr 5, 2022
Created on Apr 5, 2022
Forked from HTML Starter

This hierarchical tree visualization displays cartoon character relationships with color-coded labels, where node text size decreases with depth. Using D3 v5’s `tree()` layout and `linkHorizontal()` generator, it renders an SVG with curved links and zoomable panes via `zoom()`. The data comes from nested JSON, binding each node’s `id` and `color` from `d.data.data` to text elements. Font sizing scales by depth, while text shadows and the `event.transform` handler enhance readability and interaction.

AI-generated description
MIT Licensed

Similar vizzes