Table of Contents

Class TwBulletChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A bullet chart: for each measure, a bar showing the actual value, a marker showing the target and optional shaded bands for qualitative ranges such as poor, fair and good.

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

Remarks

Each measure has its own scale, so measures in different units can share one chart.

Constructors

TwBulletChart()

public TwBulletChart()

Properties

Items

Gets or sets the measures to plot.

[Parameter]
public IReadOnlyList<ChartBullet> Items { get; set; }

Property Value

IReadOnlyList<ChartBullet>

LabelHeader

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

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

Property Value

string

TargetLabel

Gets or sets the label for the target value. Defaults to the localized Chart_Target text ("Target").

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

Property Value

string

ValueLabel

Gets or sets the label for the actual value. Defaults to the localized Chart_Actual text ("Actual").

[Parameter]
public string? ValueLabel { 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 void BuildScene(ChartSceneBuilder builder)

Parameters

builder ChartSceneBuilder

The builder that collects the scene.