mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00

This also cleans up the bar chart code slightly and fixes some minor bugs that were detected in related code. Closes #244
24 lines
477 B
C#
24 lines
477 B
C#
namespace Spectre.Console
|
|
{
|
|
/// <summary>
|
|
/// Represents a bar chart item.
|
|
/// </summary>
|
|
public interface IBarChartItem
|
|
{
|
|
/// <summary>
|
|
/// Gets the item label.
|
|
/// </summary>
|
|
string Label { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the item value.
|
|
/// </summary>
|
|
double Value { get; }
|
|
|
|
/// <summary>
|
|
/// Gets the item color.
|
|
/// </summary>
|
|
Color? Color { get; }
|
|
}
|
|
}
|