Table of Contents

Class TwBarcodeChart

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

A barcode chart: a thin line for every observation along a single value axis, so clusters show as dense stripes and gaps as white space.

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

Remarks

It shows the raw values without grouping them into ranges, which suits a few dozen to a few hundred observations. Repeated values share one line, and its tooltip gives the count.

Constructors

TwBarcodeChart()

public TwBarcodeChart()

Properties

CountLabel

Gets or sets the label for how many observations share a value in tooltips and the table view. Defaults to the localized Chart_Count text ("Count").

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

Property Value

string

ValueLabel

Gets or sets the label for an observation's value in the table view. Defaults to the localized Chart_Value text ("Value").

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

Property Value

string

Values

Gets or sets the raw observations to plot.

[Parameter]
public IReadOnlyList<double> Values { get; set; }

Property Value

IReadOnlyList<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.