Skip to main content
100%

Fork of HTML Starter

✓ Published0🌍 Public
AAmirruddin Abdul Razak
Last edited Feb 24, 2023
Created on Feb 24, 2023
Forked from 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 description

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

See also React Starter.

MIT Licensed

Similar vizzes