Skip to content
ConsoleMonster

API Reference

Class

HistogramFluent

Namespace ConsoleMonster.Widgets
Assembly ConsoleMonster
Modifiers static
Attributes
GeneratedCode("ConsoleMonster.Generators", "1.0.0")

The fluent methods of Histogram, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.

Inheritance

  • Object
  • HistogramFluent

Methods

public static Histogram WithEdgeFormat(Histogram histogram, Func<Double, String>? value) #
Returns: Histogram

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 requiredposition: 0
The instance.
value System.Func<System.Double, System.String>? requiredposition: 1
The value.

Returns

The same instance.

public static Histogram WithHeight(Histogram histogram, Int32 value) #
Returns: Histogram

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

Parameters

histogram ConsoleMonster.Widgets.Histogram requiredposition: 0
The instance.
value System.Int32 requiredposition: 1
The value.

Returns

The same instance.

public static Histogram WithToken(Histogram histogram, ThemeToken value) #
Returns: Histogram

Sets Histogram.Token: The bar colour token (default ThemeToken.Series1).

Parameters

histogram ConsoleMonster.Widgets.Histogram requiredposition: 0
The instance.
value ConsoleMonster.Styling.ThemeToken requiredposition: 1
The value.

Returns

The same instance.

public static Histogram WithUnit(Histogram histogram, String? value) #
Returns: Histogram

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

Parameters

histogram ConsoleMonster.Widgets.Histogram requiredposition: 0
The instance.
value System.String? requiredposition: 1
The value.

Returns

The same instance.