ClusterLayout Class
Lays a tree out as a dendrogram, as d3's cluster: the leaves are evenly spaced at the deepest level, and each parent is centered over its children. Siblings are 1 unit apart, cousins 2.
public sealed class ClusterLayoutConstructors
| Name | Description |
|---|---|
| ClusterLayout() |
ClusterLayout()
ClusterLayout.cspublic ClusterLayout()No documentation is available.
Properties
| Name | Description |
|---|---|
| Height | Gets or sets the size of the layout along the depths. The default is 1. |
| Width | Gets or sets the size of the layout across the depths. The default is 1. |
Height
ClusterLayout.csWidth
ClusterLayout.csMethods
| Name | Description |
|---|---|
| Layout<T>(HierarchyNode<T>) | Places the nodes of a tree. |
Layout<T>(HierarchyNode<T>)
ClusterLayout.csPlaces the nodes of a tree.
public IReadOnlyList<HierarchyPoint<T>> Layout<T>(HierarchyNode<T> root)Type parameters
T- The type of the data of the nodes.
Parameters
rootHierarchyNode<T>- The root of the tree.
Returns
IReadOnlyList<HierarchyPoint<T>> The point of every node, in pre-order.