🌍 Public
Viewing a saved revision (read-only)
18741b0ee6a14ba2ae27d58d6399df5d
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