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.