This post describes how to build a very basic radial dendrogram with d3.js. Three levels of hierarchy are drawn. You can see many other examples in the dendrogram section of the gallery. This example works with d3.js v4
and v6
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.