HierarchyMark<T> Class

A mark that draws the nodes of a tree in the plot area, without position scales. The nodes are colored by the color scale.

public abstract class HierarchyMark<T> : Mark

Type parameters

T
The type of the data of the nodes.
Inheritance
Mark HierarchyMark<T>

Properties

NameDescription
DataAttributesGets or sets the data-* attributes of the shape of a node in the SVG output, or null for none. See Mark<T>.DataAttributes for the names and the values.
FillGets or sets the channel of the fill color of a node, or null for the name of its ancestor at depth 1 (its top-level group).
FillColorGets or sets a single fill color for every node, used when HierarchyMark<T>.Fill is not set.
LabelGets or sets the label of a node, or null for its name. A label is drawn only when it fits.
RootGets the root of the tree. Its values must be computed (HierarchyNode<T>.Sum).
TitleGets or sets the tooltip of a node, or null for its path and its value.

DataAttributes

HierarchyMark`1.cs

Gets or sets the data-* attributes of the shape of a node in the SVG output, or null for none. See Mark<T>.DataAttributes for the names and the values.

public Func<HierarchyNode<T>, IEnumerable<KeyValuePair<string, object?>>?>? DataAttributes { get; set; }

Gets or sets the channel of the fill color of a node, or null for the name of its ancestor at depth 1 (its top-level group).

public Func<HierarchyNode<T>, object?>? Fill { get; set; }

Gets or sets a single fill color for every node, used when HierarchyMark<T>.Fill is not set.

public ChartColor? FillColor { get; set; }

Property value

ChartColor?

Gets or sets the label of a node, or null for its name. A label is drawn only when it fits.

public Func<HierarchyNode<T>, string?>? Label { get; set; }

Gets the root of the tree. Its values must be computed (HierarchyNode<T>.Sum).

public HierarchyNode<T> Root { get; }

Property value

HierarchyNode<T>

Gets or sets the tooltip of a node, or null for its path and its value.

public Func<HierarchyNode<T>, string?>? Title { get; set; }