API Reference
BarChartFluent
The fluent methods of BarChart, generated from its public properties: With... sets a property and Add... adds to a collection, both returning the same instance.
Inheritance
- Object
- BarChartFluent
Methods
public static BarChart WithBarToken(BarChart barChart, ThemeToken value) #BarChartSets BarChart.BarToken: The default bar colour (default ThemeToken.Series1).
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- value ConsoleMonster.Styling.ThemeToken
- The value.
Returns
The same instance.
public static BarChart WithCritical(BarChart barChart, Double? value) #BarChartSets BarChart.Critical: The value from which a bar is critical (fail colour), or null. See BarChart.Warning.
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- value System.Double?
- The value.
Returns
The same instance.
public static BarChart WithMax(BarChart barChart, Double? value) #BarChartSets BarChart.Max: The value of a full bar, or null for the largest item.
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- value System.Double?
- The value.
Returns
The same instance.
public static BarChart WithShape(BarChart barChart, BarShape value) #BarChartSets 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
- The instance.
- value ConsoleMonster.Widgets.BarShape
- The value.
Returns
The same instance.
public static BarChart WithShowValues(BarChart barChart, Boolean value = true) #BarChartSets BarChart.ShowValues: Whether values are shown after the bars (default true).
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- value System.Boolean = true
- The value (default true).
Returns
The same instance.
public static BarChart WithUnit(BarChart barChart, String? value) #BarChartSets BarChart.Unit: A unit appended to values (for example ms).
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- value System.String?
- The value.
Returns
The same instance.
public static BarChart WithValueColumn(BarChart barChart, ColumnFormat value) #BarChartSets BarChart.ValueColumn: Layout of the value column on the right (default right-aligned). Its width never shrinks during a session, so the bars keep their scale when a value grows from 9 to 10.
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- value ConsoleMonster.Layout.ColumnFormat
- The value.
Returns
The same instance.
public static BarChart WithValueColumn(BarChart barChart, Action<ColumnFormat> configure) #BarChartConfigures BarChart.ValueColumn in place: Layout of the value column on the right (default right-aligned). Its width never shrinks during a session, so the bars keep their scale when a value grows from 9 to 10.
Parameters
- barChart ConsoleMonster.Widgets.BarChart
- The instance.
- configure System.Action<ConsoleMonster.Layout.ColumnFormat>
- Configures the value.
Returns
The same instance.
public static BarChart WithWarning(BarChart barChart, Double? value) #BarChartSets 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
- The instance.
- value System.Double?
- The value.
Returns
The same instance.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?