Table of Contents

Class ChartHierarchyNode

Namespace
TwBlazor.Models
Assembly
TwBlazor.dll

A node in a hierarchy, used by tree and sunburst charts.

public sealed record ChartHierarchyNode : IEquatable<ChartHierarchyNode>
Inheritance
ChartHierarchyNode
Implements
Inherited Members

Constructors

ChartHierarchyNode(string, double, IReadOnlyList<ChartHierarchyNode>?)

A node in a hierarchy, used by tree and sunburst charts.

public ChartHierarchyNode(string Label, double Value = 0, IReadOnlyList<ChartHierarchyNode>? Children = null)

Parameters

Label string

The node label.

Value double

The value of a leaf node. Parent values are computed from their children.

Children IReadOnlyList<ChartHierarchyNode>

The child nodes.

Properties

Children

The child nodes.

public IReadOnlyList<ChartHierarchyNode>? Children { get; init; }

Property Value

IReadOnlyList<ChartHierarchyNode>

Label

The node label.

public string Label { get; init; }

Property Value

string

Value

The value of a leaf node. Parent values are computed from their children.

public double Value { get; init; }

Property Value

double

Methods

Deconstruct(out string, out double, out IReadOnlyList<ChartHierarchyNode>?)

public void Deconstruct(out string Label, out double Value, out IReadOnlyList<ChartHierarchyNode>? Children)

Parameters

Label string
Value double
Children IReadOnlyList<ChartHierarchyNode>

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

Equals(ChartHierarchyNode?)

public bool Equals(ChartHierarchyNode? other)

Parameters

other ChartHierarchyNode

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ChartHierarchyNode?, ChartHierarchyNode?)

public static bool operator ==(ChartHierarchyNode? left, ChartHierarchyNode? right)

Parameters

left ChartHierarchyNode
right ChartHierarchyNode

Returns

bool

operator !=(ChartHierarchyNode?, ChartHierarchyNode?)

public static bool operator !=(ChartHierarchyNode? left, ChartHierarchyNode? right)

Parameters

left ChartHierarchyNode
right ChartHierarchyNode

Returns

bool