Table of Contents

Class TwGraphChartBase

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

The shared definition of the charts that draw ChartGraphNode values joined by ChartGraphLink values. It supplies the table view and the tooltip of each node.

public abstract class TwGraphChartBase : TwChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
Inheritance
TwGraphChartBase
Implements
Derived
Inherited Members

Constructors

TwGraphChartBase()

protected TwGraphChartBase()

Properties

Gets or sets the links between nodes, by node identifier. Links that name a missing node, or join a node to itself, are left out.

[Parameter]
public IReadOnlyList<ChartGraphLink> Links { get; set; }

Property Value

IReadOnlyList<ChartGraphLink>

Nodes

Gets or sets the nodes. Each needs a unique Id; repeats are left out.

[Parameter]
public IReadOnlyList<ChartGraphNode> Nodes { get; set; }

Property Value

IReadOnlyList<ChartGraphNode>

SourceHeader

Gets or sets the heading of the column naming where each link starts in the table view. Defaults to the localized Chart_Source text ("Source").

[Parameter]
public string? SourceHeader { get; set; }

Property Value

string

TargetHeader

Gets or sets the heading of the column naming where each link ends in the table view. Defaults to the localized Chart_Destination text ("Target").

[Parameter]
public string? TargetHeader { get; set; }

Property Value

string

ValueHeader

Gets or sets the heading of the value column in the table view. It also labels a link's value in tooltips. Defaults to the localized Chart_Value text ("Value").

[Parameter]
public string? ValueHeader { get; set; }

Property Value

string

Methods

BuildScene(ChartSceneBuilder)

Describes what the chart draws by adding marks, data points, axes, legend entries and a table to builder. Add nothing to show the empty state.

protected override sealed void BuildScene(ChartSceneBuilder builder)

Parameters

builder ChartSceneBuilder

The builder that collects the scene.