Table of Contents

Class Bar

Namespace
MiniTui
Assembly
MiniTui.dll

A bar in a BarChartBuilder (1.x spec §8.5).

public sealed record Bar : IEquatable<Bar>
Inheritance
Bar
Implements
Inherited Members

Constructors

Bar(string, double)

A bar in a BarChartBuilder (1.x spec §8.5).

public Bar(string Label, double Value)

Parameters

Label string

The text under (or beside) the bar.

Value double

The bar's value. Negative and NaN values draw as an empty bar.

Properties

Label

The text under (or beside) the bar.

public string Label { get; init; }

Property Value

string

Style

The bar's style, or null for the theme's gauge style.

public Style? Style { get; init; }

Property Value

Style?

Value

The bar's value. Negative and NaN values draw as an empty bar.

public double Value { get; init; }

Property Value

double

ValueText

The value shown with the bar, or null for Value formatted; "" hides it.

public string? ValueText { get; init; }

Property Value

string