Cluster Layout
Cluster Layout
API Reference ▸ Layouts ▸ Hierarchy ▸ Cluster Layout
The cluster layout produces dendrograms: node-link diagrams that place leaf nodes of the tree at the same depth. For example, a cluster layout can be used to organize software classes in a package hierarchy:
Like other classes in D3, layouts follow the method chaining pattern where setter methods return the layout itself, allowing multiple setters to be invoked in a concise statement.
d3.layout.cluster()
Creates a new cluster layout with the defaul