Table of Contents

Class TwGaugeChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A circular gauge: an arc filled in proportion to a single value between a minimum and a maximum, with the value shown in the middle.

public class TwGaugeChart : TwChartBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent, IAsyncDisposable
Inheritance
TwGaugeChart
Implements
Inherited Members

Constructors

TwGaugeChart()

public TwGaugeChart()

Properties

Label

Gets or sets what the value measures, shown under it. Defaults to the localized Chart_Value text ("Value").

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

Property Value

string

Max

Gets or sets the value at the end of the arc.

[Parameter]
public double Max { get; set; }

Property Value

double

Min

Gets or sets the value at the start of the arc.

[Parameter]
public double Min { get; set; }

Property Value

double

Value

Gets or sets the value the gauge shows.

[Parameter]
public double Value { get; set; }

Property Value

double

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 void BuildScene(ChartSceneBuilder builder)

Parameters

builder ChartSceneBuilder

The builder that collects the scene.