Simple horizontal tree diagram using v6
✓ Published0🌍 Public
Dd3noob
Last edited Sep 12, 2020
Created on Sep 12, 2020
A simple horizontal tree diagram displays a small hierarchy of named nodes connected by curved links, with internal and leaf nodes distinguished by text alignment. Built with d3.js v6, it uses the `d3.tree()` layout and `d3.hierarchy()` to compute node positions from static, inline JSON data. SVG rendering places each node as a group containing a circle and label, while the links are drawn as cubic Bézier paths via the `d` attribute. The styling includes white node circles with steelblue strokes and gray links.
AI-generated descriptionThis is a simple horizontal tree diagram written with d3.js v6.
This is designed to be used as part of documenting an update to the book D3 Tips and Tricks to version 6 of d3.js.
mit Licensed