PrateekKumarSingh/Graphical
소개
오픈 소스 크로스 플랫폼 모듈입니다. 데이터 포인트를 입력받아 PowerShell 콘솔/터미널에 2D 산점도, 막대 그래프 또는 선 그래프를 표시합니다 📈📊💹
개발 도구What you can do
- Color-coded output depending upon the Value of data point
- Colors codes can be customized by passing a color-map hash table
- Custom X an Y-Axis labels
- Graph in console is independent and fully customizable, not like Task Manager (Performance Tab)
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalPowershell Console/Terminal Graph
Consumes data points as input and plots them on a 2D graph in the Powershell console
Type of Graphs Available -
Scatter

Bar

Line

Installation
PowerShell v5 and Later
You can install the Graphical module directly from the PowerShell Gallery
- [Recommended] Install to your personal PowerShell Modules folder
Install-Module Graphical -scope CurrentUser - [Requires Elevation] Install for Everyone (computer PowerShell Modules folder)
Install-Module Graphical
PowerShell v4 and Earlier
To install to your personal modules folder run:
iex (new-object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/PrateekKumarSingh/Graphical/master/Install.ps1')
Features
- Color-coded output depending upon the Value of data point
- Colors codes can be customized by passing a color-map hash table
- Custom X an Y-Axis labels
- Graph in console is independent and fully customizable, not like Task Manager (Performance Tab)
- Could be incorporated in Powershell scripts
- Can consume data points generated during script run or Pre stored data like in a file or database.
- Independent of PowerShell version, and Works on PowerShell Core (Windows\Linux)
Use Cases
The function
Show-Graphtakes data points as input and plot them on a 2D graph
You can also customize the labels on X and Y-Axis and provide a graph title

The function
Show-Graphcan consume data points, generated during script execution or from a file or database like in the above example.
Plotting Audio Peak Levels in your PowerShell Console (Don't forget to play some audio! :P)
Install-Module AudioDeviceCmdlets, Graphical Import-Module AudioDeviceCmdlets, Graphical -Verbose $Device = Get-AudioDevice -Playback [int[]]$datapoints =@(0)*50 do { $PeakValue = $Device.Device.AudioMeterInformation.MasterPeakValue*100 $datapoints += [int]$PeakValue $datapoints = $datapoints | Select-Object -last 50 Clear-Host Show-Graph -datapoints $datapoints -GraphTitle AudioLevels Show-Graph -datapoints $datapoints -GraphTitle AudioLevels -Type Line Show-Graph -datapoints $datapoints -GraphTitle AudioLevels -Type Scatter Start-Sleep -Milliseconds 1000 } while ($true)
Visualizing Azure Monitor Metrics like CPU %age on a Virtual machine in #PowerShell
```PowerShell
$ResourceID = '/subscriptions/<subscription>/resourceGroups/demo-resource-group/providers/Microsoft.Compute/virtualMachines/SimpleWinVM'
$Data = Get-AzMetric -ResourceId $ResourceID -WarningAction SilentlyContinue | Select-Object unit, data
$Datpoints = $data.data.average.foreach({[int]$_})
Import-Module Graphical
Show-Graph -Datapoints $Datpoints -GraphTitle 'CPU (% age)'
```

관련 프로젝트 살펴보기
불러오는 중…