Skip to content
ConsoleMonster
Class

BarChartFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of BarChart, generated from its public properties: A property-named method sets a property and a singular-named method adds to a collection, both returning the same instance.

Inheritance

  • object
  • BarChartFluent

Methods

public static BarChart AxisLabel(BarChart barChart, string? value) #

Sets BarChart.AxisLabel: A shared plain text label below the bars, for example elapsed time since an observation.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value string? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.BarChart { AxisLabel = value };    Ui.BarChart().AxisLabel(value);
public static BarChart BarHeader(BarChart barChart, string? value) #

Sets BarChart.BarHeader: Optional bar-column heading.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value string? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.BarChart { BarHeader = value };    Ui.BarChart().BarHeader(value);
public static BarChart BarWidth(BarChart barChart, int? value) #

Sets BarChart.BarWidth: Optional maximum bar width in cells; null uses all available room.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value int? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ConsoleMonster.Widgets.BarChart { BarWidth = value };    Ui.BarChart().BarWidth(value);
public static BarChart Critical(BarChart barChart, double? value) #

Sets BarChart.Critical: The value from which a bar is critical (fail colour), or null. See BarChart.Warning.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value double? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                        // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Critical = value };    Ui.BarChart().Critical(value);
public static BarChart LabelHeader(BarChart barChart, string? value) #

Sets BarChart.LabelHeader: Optional label-column heading; any heading enables a segmented table header.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value string? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.BarChart { LabelHeader = value };    Ui.BarChart().LabelHeader(value);
public static BarChart Maximum(BarChart barChart, double? value) #

Sets BarChart.Maximum: The value of a full bar, or null for the largest item. Non-finite maxima use the largest finite item; a negative maximum is treated as zero, so signed bars always include their zero baseline.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value double? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Maximum = value };    Ui.BarChart().Maximum(value);
public static BarChart MissingText(BarChart barChart, string? value) #

Sets BarChart.MissingText: The plain text shown for non-finite values; null retains the tier-appropriate dash.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value string? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.BarChart { MissingText = value };    Ui.BarChart().MissingText(value);
public static BarChart Role(BarChart barChart, ThemeToken value) #

Sets BarChart.Role: The default bar colour (default ThemeToken.Series1).

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value ConsoleMonster.Styling.ThemeToken required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Role = value };    Ui.BarChart().Role(value);
public static BarChart Shape(BarChart barChart, BarShape value) #

Sets BarChart.Shape: The bar shape: BarShape.Block (default, solid three-quarter-height bars that keep a gap between rows) or BarShape.Line.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value ConsoleMonster.Widgets.BarShape required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                     // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Shape = value };    Ui.BarChart().Shape(value);
public static BarChart ShowTrack(BarChart barChart, bool value = true) #

Sets BarChart.ShowTrack: Draw the unused portion of each bar as a muted track.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value bool = true optional
The value; true when omitted.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                         // C# fluent
new global::ConsoleMonster.Widgets.BarChart { ShowTrack = value };    Ui.BarChart().ShowTrack(value);
public static BarChart ShowValues(BarChart barChart, bool value = true) #

Sets BarChart.ShowValues: Whether values are shown after the bars (default true).

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value bool = true optional
The value; true when omitted.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                          // C# fluent
new global::ConsoleMonster.Widgets.BarChart { ShowValues = value };    Ui.BarChart().ShowValues(value);
public static BarChart Signed(BarChart barChart, bool value = true) #

Sets BarChart.Signed: Draws negative values to the left of a shared zero baseline; default false preserves zero-based bars.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value bool = true optional
The value; true when omitted.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                      // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Signed = value };    Ui.BarChart().Signed(value);
public static BarChart SpanMissingValues(BarChart barChart, bool value = true) #

Sets BarChart.SpanMissingValues: Let a missing measurement's explanation span the bar and value columns.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value bool = true optional
The value; true when omitted.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                                 // C# fluent
new global::ConsoleMonster.Widgets.BarChart { SpanMissingValues = value };    Ui.BarChart().SpanMissingValues(value);
public static BarChart Unit(BarChart barChart, string? value) #

Sets BarChart.Unit: A unit appended to values (for example ms).

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value string? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                    // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Unit = value };    Ui.BarChart().Unit(value);
ValueColumn 2 overloads
public static BarChart ValueColumn(BarChart barChart, ColumnFormat value) #

Sets BarChart.ValueColumn: Layout of the value column on the right (default right-aligned). Its numeric width never shrinks during a session, so the bars keep their scale when a value grows from 9 to 10. Missing explanations use only the current frame's available space and do not reserve width after a measurement arrives.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value ConsoleMonster.Layout.ColumnFormat required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.BarChart { ValueColumn = value };    Ui.BarChart().ValueColumn(value);
public static BarChart ValueColumn(BarChart barChart, Action<ColumnFormat> configure) #

Configures BarChart.ValueColumn in place: Layout of the value column on the right (default right-aligned). Its numeric width never shrinks during a session, so the bars keep their scale when a value grows from 9 to 10. Missing explanations use only the current frame's available space and do not reserve width after a measurement arrives.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
configure System.Action<ConsoleMonster.Layout.ColumnFormat> required
Configures the value.

Returns

BarChart The same instance.
public static BarChart ValueHeader(BarChart barChart, string? value) #

Sets BarChart.ValueHeader: Optional value-column heading.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value string? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                           // C# fluent
new global::ConsoleMonster.Widgets.BarChart { ValueHeader = value };    Ui.BarChart().ValueHeader(value);
public static BarChart ValuePresenter(BarChart barChart, ICellPresenter? value) #

Sets BarChart.ValuePresenter: Optional presenter for measured values, such as compact durations.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value ConsoleMonster.Presenters.ICellPresenter? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                              // C# fluent
new global::ConsoleMonster.Widgets.BarChart { ValuePresenter = value };    Ui.BarChart().ValuePresenter(value);
public static BarChart Warning(BarChart barChart, double? value) #

Sets BarChart.Warning: The value from which a bar is a warning (warning colour), or null. With BarChart.Critical below it, lower values are worse (free space); otherwise higher values are (disk use). An item's own colour wins.

Parameters

barChart ConsoleMonster.Widgets.BarChart required
The instance.
value double? required
The value.

Returns

BarChart The same instance.

Examples

// C# initializer or property                                       // C# fluent
new global::ConsoleMonster.Widgets.BarChart { Warning = value };    Ui.BarChart().Warning(value);