Skip to main content
100%

excercise_company_structure_with_d3

✓ Published0🌍 Public
GGusnaRWX
Last edited Dec 29, 2023
Created on Dec 28, 2023
Forked from HTML Starter

This example shows a hierarchical company structure as a color-coded tree diagram, with a root “HEAD” node branching into two categories: where items are referenced and what items are using. Each category is further grouped by type (Layout, CustomField, ApexClass), revealing individual labeled leaves with IDs. The code builds the data through `d3.hierarchy` and `d3.tree`, then renders nodes as SVG rectangles with embedded HTML via `foreignObject`. Node colors vary by depth using a helper function, while edges are drawn as paths. The visualization uses `d3.select` for DOM manipulation and static constants for dimensions and styling.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes