BarChartItem Class

An item that's shown in a bar chart.
public sealed class BarChartItem : IBarChartItem
Namespace
Spectre.Console
Interfaces

Constructors

BarChartItem(string, double, Color?)
Initializes a new instance of the BarChartItem class.

Properties

Color? Color
Gets the item color.
string Label
Gets the item label.
double Value
Gets the item value.

Extension Methods

T And<BarChartItem>(Action<BarChartItem>)
Performs the specified action on the given object and then returns the object. Useful for fluent testing patterns where additional assertions or operations are chained together in a readable manner.