Table of Contents

Class TwWaterfallChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A waterfall chart: floating columns that show how a series of increases and decreases build up to a total.

public class TwWaterfallChart : TwValueChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
Inheritance
TwWaterfallChart
Implements
Inherited Members

Remarks

Each value in Data is a change, positive or negative. Direction is shown by color and by the legend, so it never relies on color alone.

Constructors

TwWaterfallChart()

public TwWaterfallChart()

Properties

DecreaseLabel

Gets or sets the legend label for negative changes. Defaults to the localized Chart_Decrease text ("Decrease").

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

Property Value

string

IncreaseLabel

Gets or sets the legend label for positive changes. Defaults to the localized Chart_Increase text ("Increase").

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

Property Value

string

ShowTotal

Gets or sets whether a final column showing the running total is added.

[Parameter]
public bool ShowTotal { get; set; }

Property Value

bool

ShowValues

Gets or sets whether each column is labelled with its change.

[Parameter]
public bool ShowValues { get; set; }

Property Value

bool

TotalLabel

Gets or sets the label of the total column. Defaults to the localized Chart_Total text ("Total").

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

Property Value

string

Methods

BuildMarks(ChartSceneBuilder)

Adds the marks, data points and axes for the values.

protected override void BuildMarks(ChartSceneBuilder builder)

Parameters

builder ChartSceneBuilder

The builder that collects the scene.