Table of Contents

Class BOBChartTreemapNode<TY>

Namespace
BlazOrbit.Charts.Models
Assembly
BlazOrbit.Charts.dll

Hierarchical leaf or branch in a BOBTreemapChart<TY> / BOBSunburstChart<TY> dataset. Branch nodes (those with a non-empty Children) take their magnitude from the descendant sum; leaves (Children null/empty) use Value directly.

public sealed record BOBChartTreemapNode<TY>

Type Parameters

TY

Numeric type of the node value.

Inheritance
object
BOBChartTreemapNode<TY>

Constructors

BOBChartTreemapNode()

public BOBChartTreemapNode()

Properties

Children

Optional child nodes. A non-null, non-empty list marks this node as a branch and triggers recursive subdivision of the node's rect.

public IReadOnlyList<BOBChartTreemapNode<TY>>? Children { get; init; }

Property Value

IReadOnlyList<BOBChartTreemapNode<TY>>

Color

Optional explicit fill colour (any valid CSS color). When null the renderer cycles through the chart theme palette.

public string? Color { get; init; }

Property Value

string

Label

Display label shown at the node's centroid when the rect is large enough.

public string Label { get; init; }

Property Value

string

Value

Leaf magnitude. Required for leaves (nodes with null/empty Children). Ignored on branch nodes - the renderer aggregates descendants instead, so set Children to drive a branch and leave Value at the default.

public TY? Value { get; init; }

Property Value

TY