Table of Contents

Class TwRangeChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A range chart: a floating bar from a low value to a high value for each category, such as a temperature range or a salary band.

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

Constructors

TwRangeChart()

public TwRangeChart()

Properties

HighLabel

Gets or sets the label for the high end of a range. Defaults to the localized Chart_High text ("High").

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

Property Value

string

LabelHeader

Gets or sets the heading of the label column in the table view. Defaults to the localized Chart_Category text ("Category").

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

Property Value

string

LowLabel

Gets or sets the label for the low end of a range. Defaults to the localized Chart_Low text ("Low").

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

Property Value

string

Ranges

Gets or sets the ranges to plot.

[Parameter]
public IReadOnlyList<ChartRange> Ranges { get; set; }

Property Value

IReadOnlyList<ChartRange>

Vertical

Gets or sets whether categories run left to right with values bottom to top, instead of the default rows with values left to right.

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

Property Value

bool

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.