Skip to main content
100%

Fork of Visualization of Spatial Data - Tree Graph

✓ Published0🌍 Public
BBALAJI MANDAVA
Last edited Apr 3, 2024
Created on Apr 3, 2024

This example visualizes an organizational hierarchy as a tree graph, with nodes representing employees and colored by role (CEO in green, CTO in blue, CFO in orange, and HR Manager in red). The data is loaded from a CSV file via `d3.csv`, then transformed into a hierarchy using `d3.stratify` and laid out with `d3.tree`. The resulting SVG is rendered using `d3.linkHorizontal` for curved links between nodes, with each node displaying a circle and the employee's name as text.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes