Skip to content
ChartForgeX
Class

MermaidTreemapNode

ChartForgeX.Mermaid

Namespace
ChartForgeX.Mermaid
Assembly
ChartForgeX.Mermaid
Modifiers
sealed

Describes one Mermaid treemap node.

Inheritance

Usage

Explore 5 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 1

Constructors

public MermaidTreemapNode(string label, double? value, int indent, MermaidTreemapNode? parent, string? className, MermaidSourceSpan span) #

Initializes a treemap node.

Parameters

label string required
value double? required
indent int required
parent ChartForgeX.Mermaid.MermaidTreemapNode? required
className string? required
span ChartForgeX.Mermaid.MermaidSourceSpan required

Properties

public string Label { get; } #

Gets the display label.

public double? Value { get; } #

Gets the optional leaf value. Null means this node is a section/parent node.

public int Indent { get; } #

Gets the source indentation level.

public string? ClassName { get; } #

Gets the optional Mermaid class name from :::class syntax.

public MermaidTreemapNode? Parent { get; } #

Gets the parent node, or null for roots.

public List<MermaidTreemapNode> Children { get; } #

Gets child nodes.

public bool IsLeaf { get; } #

Gets whether the node is a leaf with a numeric value.

public string Path { get; } #

Gets the node path from the root.