🌍 Public
Viewing a saved revision (read-only)
f85d498c33514a48bfbcb3f768b93717
Fork of HTML Starter
This example renders a hierarchical tree diagram from static data, showing family relationships with names like Roshan, Nimmat, and Salim. The visualization selects an SVG container, appends a `<g>` element, and uses `d3.hierarchy` to convert the plain JavaScript object into a node structure. It then calls `root.descendants()` to prepare nodes for rendering, though the code sets up a layout with `d3.layout.tree()` without completing the drawing. The page uses D3 v7 imported via ESM, with SVG elements styled through CSS classes.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.