diff --git a/private/Terminaux.Console/Fixtures/FixtureManager.cs b/private/Terminaux.Console/Fixtures/FixtureManager.cs index 1188848c8..fea7ab9b1 100644 --- a/private/Terminaux.Console/Fixtures/FixtureManager.cs +++ b/private/Terminaux.Console/Fixtures/FixtureManager.cs @@ -178,7 +178,6 @@ internal static class FixtureManager new TestSyntaxText(), new TestLineChart(), new TestWinsLosses(), - new TestAreaChart(), // Input new TestInputSelection(), diff --git a/public/Terminaux/Writer/CyclicWriters/BreakdownChart.cs b/public/Terminaux/Writer/CyclicWriters/BreakdownChart.cs index b10a23d01..3b71cd37a 100644 --- a/public/Terminaux/Writer/CyclicWriters/BreakdownChart.cs +++ b/public/Terminaux/Writer/CyclicWriters/BreakdownChart.cs @@ -163,7 +163,7 @@ internal static string RenderBreakdownChart(ChartElement[] elements, int Interio if (showcase && i < shownElements.Length) { var element = shownElements[i]; - int nameWidth = ConsoleChar.EstimateCellWidth(element.Name); + int nameWidth = ConsoleChar.EstimateCellWidth(element.Name.Truncate(nameLength - 4 - $"{maxValue}".Length)); int spaces = showcaseLength - (" ■ ".Length + nameWidth + 2 + $"{element.Value}".Length); spaces = spaces < 0 ? 0 : spaces; breakdownChart.Append( diff --git a/public/Terminaux/Writer/CyclicWriters/LineChart.cs b/public/Terminaux/Writer/CyclicWriters/LineChart.cs index 5d53eb7ca..a15caf481 100644 --- a/public/Terminaux/Writer/CyclicWriters/LineChart.cs +++ b/public/Terminaux/Writer/CyclicWriters/LineChart.cs @@ -154,7 +154,7 @@ internal static string RenderLineChart(ChartElement[] elements, int InteriorWidt if (showcase && i < shownElements.Length) { var element = shownElements[i]; - int nameWidth = ConsoleChar.EstimateCellWidth(element.Name); + int nameWidth = ConsoleChar.EstimateCellWidth(element.Name.Truncate(nameLength - 4 - $"{maxValue}".Length)); int spaces = showcaseLength - (" ■ ".Length + nameWidth + 2 + $"{element.Value}".Length); spaces = spaces < 0 ? 0 : spaces; lineChart.Append( diff --git a/public/Terminaux/Writer/CyclicWriters/StickChart.cs b/public/Terminaux/Writer/CyclicWriters/StickChart.cs index 1be62393e..1e52b87dc 100644 --- a/public/Terminaux/Writer/CyclicWriters/StickChart.cs +++ b/public/Terminaux/Writer/CyclicWriters/StickChart.cs @@ -141,7 +141,7 @@ internal static string RenderStickChart(ChartElement[] elements, int InteriorWid if (showcase && i < shownElements.Length) { var element = shownElements[i]; - int nameWidth = ConsoleChar.EstimateCellWidth(element.Name); + int nameWidth = ConsoleChar.EstimateCellWidth(element.Name.Truncate(nameLength - 4 - $"{maxValue}".Length)); int spaces = showcaseLength - (" ■ ".Length + nameWidth + 2 + $"{element.Value}".Length); spaces = spaces < 0 ? 0 : spaces; stickChart.Append(