TreemapMark<T> Class
Draws a tree as a treemap (TreemapLayout): each leaf is a rectangle whose area is proportional to its value, inside the rectangles of its ancestors.
public sealed class TreemapMark<T> : HierarchyMark<T>Type parameters
T- The type of the data of the nodes.
- Inheritance
HierarchyMark<T>TreemapMark<T>
Constructors
| Name | Description |
|---|---|
| TreemapMark(HierarchyNode<T>) | Initializes a new instance of the TreemapMark<T> class. |
TreemapMark(HierarchyNode<T>)
TreemapMark.csInitializes a new instance of the TreemapMark<T> class.
public TreemapMark(HierarchyNode<T> root)Parameters
rootHierarchyNode<T>- The root of the tree. Its values must be computed (
HierarchyNode<T>.Sum).
Properties
| Name | Description |
|---|---|
| PaddingInner | Gets or sets the space between siblings. The default is 1. |
| PaddingOuter | Gets or sets the space between the edges of a group and its children. The default is 0. |
| PaddingTop | Gets or sets the space between the top edge of a group and its children, where the name of the group is drawn when it fits. The default is 0. |
| ShowValues | Gets or sets a value that indicates whether the value of a leaf is drawn under its label. The default is true. |
| Tiling | Gets or sets how the rectangle of a node is divided among its children. The default is TreemapTiling.Squarified. |
PaddingInner
TreemapMark.csPaddingOuter
TreemapMark.csPaddingTop
TreemapMark.csShowValues
TreemapMark.csTiling
TreemapMark.csGets or sets how the rectangle of a node is divided among its children. The default is TreemapTiling.Squarified.
public TreemapTiling Tiling { get; set; }