This post describes how to build a very basic horizontal dendrogram with d3.js. Three levels of hierarchy are drawn. You can see many other examples in the dendrogram section of the gallery.
d3.cluster()
and d3.hierarchy()
. See the d3-hierarchy documentation to learn more about it.linkRadial()
function to get this smooth shape. Read more about shape helpers here.