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