This is a simple horizontal tree diagram written with d3.js v4. It is based on the vertical version here
This is designed to be used 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