PartitionLayout Class
Lays a tree out as adjacent rectangles, one layer per depth, as d3's partition: an icicle chart, or a sunburst once mapped to polar coordinates. The width of a node is proportional to its value.
public sealed class PartitionLayoutConstructors
| Name | Description |
|---|---|
| PartitionLayout() |
PartitionLayout()
PartitionLayout.cspublic PartitionLayout()No documentation is available.
Properties
| Name | Description |
|---|---|
| Height | Gets or sets the size of the layout along the depth (the height of an icicle). The default is 1. |
| Padding | Gets or sets the space removed from the right and bottom edges of each rectangle, to separate them. The default is 0. |
| Width | Gets or sets the size of the layout along the values (the width of an icicle). The default is 1. |
Height
PartitionLayout.csPadding
PartitionLayout.csWidth
PartitionLayout.csMethods
| Name | Description |
|---|---|
| Layout<T>(HierarchyNode<T>) | Places the nodes of a tree. The values of the nodes must be computed first (HierarchyNode<T>.Sum). |
Layout<T>(HierarchyNode<T>)
PartitionLayout.csPlaces the nodes of a tree. The values of the nodes must be computed first (HierarchyNode<T>.Sum).
public IReadOnlyList<HierarchyRectangle<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<HierarchyRectangle<T>> The rectangle of every node, in pre-order. The root takes the first layer.