Skip to content
ConsoleMonster
Class

HistogramFluent

ConsoleMonster.Widgets

Namespace
ConsoleMonster.Widgets
Assembly
ConsoleMonster
Modifiers
static

The fluent methods of Histogram, 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
  • HistogramFluent

Methods

public static Histogram EdgeFormatBy(Histogram histogram, Func<double, string>? value) #

Sets Histogram.EdgeFormat: Formats the bucket edge labels (for example milliseconds as 250ms and 1s), or null for the compact number and Histogram.Unit.

Parameters

histogram ConsoleMonster.Widgets.Histogram required
The instance.
value System.Func<double, string>? required
The callback.

Returns

Histogram The same instance.

Examples

// C# initializer or property    // C# fluent
histogram.EdgeFormat = value;    histogram.EdgeFormatBy(value);
public static Histogram Height(Histogram histogram, int value) #

Sets Histogram.Height: Rows for the bars (default 6).

Parameters

histogram ConsoleMonster.Widgets.Histogram required
The instance.
value int required
The value.

Returns

Histogram The same instance.

Examples

// C# initializer or property    // C# fluent
histogram.Height = value;        histogram.Height(value);
public static Histogram Label(Histogram histogram, string item) #

Adds an item to Histogram.Labels: Optional bucket-edge labels, in edge order; omitted edges retain their numeric labels.

Parameters

histogram ConsoleMonster.Widgets.Histogram required
The instance.
item string required
The item.

Returns

Histogram The same instance.
public static Histogram Labels(Histogram histogram, IEnumerable<string> items) #

Adds items to Histogram.Labels: Optional bucket-edge labels, in edge order; omitted edges retain their numeric labels.

Parameters

histogram ConsoleMonster.Widgets.Histogram required
The instance.
items System.Collections.Generic.IEnumerable<string> required
The items, in order.

Returns

Histogram The same instance.
public static Histogram Role(Histogram histogram, ThemeToken value) #

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

Parameters

histogram ConsoleMonster.Widgets.Histogram required
The instance.
value ConsoleMonster.Styling.ThemeToken required
The value.

Returns

Histogram The same instance.

Examples

// C# initializer or property    // C# fluent
histogram.Role = value;          histogram.Role(value);
public static Histogram Unit(Histogram histogram, string? value) #

Sets Histogram.Unit: A unit for bucket labels (for example s).

Parameters

histogram ConsoleMonster.Widgets.Histogram required
The instance.
value string? required
The value.

Returns

Histogram The same instance.

Examples

// C# initializer or property    // C# fluent
histogram.Unit = value;          histogram.Unit(value);