This is a simple vertical tree diagram written with d3.js v5.
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 5 of d3.js.
https://d3js.org/d3.v5.min.js