Skip to main content
100%

familytree

✓ Published0🌍 Public
Vvaddepallinaveen
Last edited Apr 3, 2022
Created on Apr 3, 2022
Forked from HTML Starter

This example renders a zoomable hierarchical tree visualization, displaying a color-themed taxonomy where root categories like Black, Blue, and Green branch into related items. The code uses D3 v5's `tree`, `hierarchy`, and `linkHorizontal` functions to compute the SVG layout, with node labels colored via data attributes and text shadows applied through CSS. Zooming is implemented using the `zoom` event, while font sizes scale based on node depth. The data loads from a local JSON file.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes