Skip to main content
100%

Simple vertical tree diagram using v7

✓ Published0🌍 Public
Dd3noob
Last edited Jun 19, 2021
Created on Jun 19, 2021

This is a simple vertical tree diagram built with d3.js v7, displaying a small hierarchical dataset with a top-level node, a branching level, and leaf nodes. It shows parent-child relationships using curved links, with internal and leaf nodes styled differently via circles and text labels. The code uses the `d3.tree()` layout and `d3.hierarchy()` to compute node positions, then renders the structure as SVG paths and groups. The data is embedded directly in the script, and the visualization is designed as a starting point for further development.

AI-generated description

This is a simple vertical tree diagram written with d3.js v7.

This is designed to be used as a starting point for further development as part of documenting an update to the book D3 Tips and Tricks to version 7 of d3.js.

mit Licensed

Similar vizzes