This is a tree diagram that used data from a csv file. It has been written with d3.js v4 and is based on the simple horizontal 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