Skip to main content
100%

Fork of Fork of D3.js collapsibleRRR tree with boxes vertical

✓ Published0🌍 Public
Mm-chhetri
Last edited Jan 13, 2023
Created on Jan 12, 2023
Forked from HTML Starter

This visualization shows a hierarchical tree diagram with collapsible nodes, rendered as boxes connected by links. Each node displays a label and is colored based on the `gender` attribute from the JSON data—blue for male, green for female. The tree uses D3.js v3 layout functions to position nodes, with SVG rectangles for nodes and paths for links. Clicking a node triggers an animated collapse or expansion of its children, updating the layout dynamically. The example is implemented as a React component and loads data from an external JSON file using `d3.json`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes