Convert the d3 to collapsible tree dendrogram.