BreakdownChartItem Class

An item that's shown in a breakdown chart.
public sealed class BreakdownChartItem : IBreakdownChartItem
Namespace
Spectre.Console
Interfaces

Constructors

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

Properties

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

Extension Methods

T And<BreakdownChartItem>(Action<BreakdownChartItem>)
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.