Skip to content

Commit

Permalink
Adjust numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunLawrie committed Aug 31, 2024
1 parent 7f34722 commit 132b293
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions PwshSpectreConsole/public/demo/Get-SpectreDemoFeatures.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function Get-SpectreDemoFeatures {

$demoWidth = Get-HostWidth

$title = Write-SpectreHost "[underline][yellow]Spectre.Console[/][silver] Features[/][/]" -PassThru | Format-SpectreAligned -VerticalAlignment Middle
$title = Write-SpectreHost "[underline][yellow]PwshSpectreConsole[/][silver] Features[/][/]" -PassThru | Format-SpectreAligned -VerticalAlignment Middle
$titleTable = Format-SpectreTable -Data @{
Title = $title
} -HideHeaders -Border None -Width $demoWidth
Expand Down Expand Up @@ -142,9 +142,10 @@ function Get-SpectreDemoFeatures {

# Charts
$breakdownChart = @(
(New-SpectreChartItem -Label "C#" -Value 82 -Color Green),
(New-SpectreChartItem -Label "PowerShell" -Value 13 -Color Red),
(New-SpectreChartItem -Label "Bash" -Value 5 -Color Blue)
(New-SpectreChartItem -Label "PowerShell" -Value 70.2 -Color Blue),
(New-SpectreChartItem -Label "MDX" -Value 24.7 -Color Red),
(New-SpectreChartItem -Label "C#" -Value 3 -Color Green),
(New-SpectreChartItem -Label "Astro" -Value 3 -Color Blue)
) | Format-SpectreBreakdownChart -ShowPercentage -Width ([int](($demoWidth - 30) / 2)) | Format-SpectrePanel -Border Square -Color Grey -Height 5

$barChart = @(
Expand Down

0 comments on commit 132b293

Please sign in to comment.