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
LabelstringThe text under (or beside) the bar.
ValuedoubleThe 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
Style
The bar's style, or null for the theme's gauge style.
public Style? Style { get; init; }
Property Value
Value
The bar's value. Negative and NaN values draw as an empty bar.
public double Value { get; init; }
Property Value
ValueText
The value shown with the bar, or null for Value formatted; "" hides it.
public string? ValueText { get; init; }