Open-Source, Platform independent module that consumes data points as input and plots them on a 2D graph [Scatter / Bar / Line] on the PowerShell Console/Terminal
An exception is thrown when the GraphTitle exceeds the expected boarder size.
PS C:\Users\kami\Graphical>Remove-Module Graphical; Import-Module .\Graphical.psd1; 1|Show-Graph-GraphTitle '1234567'
Specified argument was out of the range of valid values.
Parameter name: times
At C:\Users\kami\Graphical\src\Show-Graph.ps1:151 char:57+ ... t,"",$GraphTitle,"",$([string]$TopEdge*$TopBoundaryLength),$TopRi ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (:) [], ArgumentOutOfRangeException
+ FullyQualifiedErrorId : System.ArgumentOutOfRangeException
┌ 1234567 ┐
│ │
│ 10┤▄ │
│ └─ │
│ │
└────────┘
PS C:\Users\kami\Graphical>Remove-Module Graphical; Import-Module .\Graphical.psd1; 1|Show-Graph-GraphTitle '123456'
┌ 123456 ┐
│ │
│ 10┤▄ │
│ └─ │
│ │
└────────┘
This behavior has nothing to do with commit 805a93d Write-Graph happens close to the end and does not influence the above calculations at all.
This seems to be a missed edge case.