🌍 Public
Viewing a saved revision (read-only)
5019d0bacf1942cba2c5bbc3c2a9d869
company_tree
This example renders a company organizational hierarchy as an indented tree diagram. It uses D3.js v7 and SVG to draw nodes and links, with circles for roles and text labels. The hierarchical structure is built from an array of objects using `d3.group` to nest data by company, department, and team before mapping it into a tree structure. The visualization includes a dynamic color legend that separates roles by team, and the nodes are interactive, with the cursor pointer indicating clickable elements.
AI-generated description