Skip to main content
100%

Tree

✓ Published12🌍 Public
MMTR
Last edited Mar 29, 2021
Created on Mar 22, 2021
Forked from HTML Starter

This example shows a static tree diagram whose nodes and links animate into place when the page loads. Nodes are drawn as red-stroked white circles, with text labels for each person, and links are drawn as straight black lines. The visualization uses D3 v6’s `d3.stratify` to arrange hierarchical data, `d3.tree` to compute the layout, and SVG `path` and `circle` elements. Node and link rendering is animated with D3’s `.transition().duration()`, which interpolates the initial coordinates to final positions.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes