We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate chart code to separate function.
$Alljobs = @() if ($Bkjobs.info.LatestStatus) { $Alljobs += $Bkjobs.info.LatestStatus } if ((Get-VBRTapeJob -ErrorAction SilentlyContinue).LastResult) { $Alljobs += (Get-VBRTapeJob).LastResult } if ((Get-VBRSureBackupJob -ErrorAction SilentlyContinue).LastResult) { $Alljobs += (Get-VBRSureBackupJob -ErrorAction SilentlyContinue).LastResult } $sampleData = $Alljobs | Group-Object $exampleChart = New-Chart -Name BackupJobs -Width 600 -Height 400 $addChartAreaParams = @{ Chart = $exampleChart Name = 'BackupJobs' AxisXTitle = 'Status' AxisYTitle = 'Count' NoAxisXMajorGridLines = $true NoAxisYMajorGridLines = $true } $exampleChartArea = Add-ChartArea @addChartAreaParams -PassThru $addChartSeriesParams = @{ Chart = $exampleChart ChartArea = $exampleChartArea Name = 'exampleChartSeries' XField = 'Name' YField = 'Count' Palette = 'Green' ColorPerDataPoint = $true } $sampleData | Add-ColumnChartSeries @addChartSeriesParams $addChartTitleParams = @{ Chart = $exampleChart ChartArea = $exampleChartArea Name = 'BackupJob' Text = 'Jobs Latest Result' Font = New-Object -TypeName 'System.Drawing.Font' -ArgumentList @('Arial', '12', [System.Drawing.FontStyle]::Bold) } Add-ChartTitle @addChartTitleParams $chartFileItem = Export-Chart -Chart $exampleChart -Path (Get-Location).Path -Format "PNG" -PassThru if ($PassThru) { Write-Output -InputObject $chartFileItem }
No response
The text was updated successfully, but these errors were encountered:
Migrate chart code to separate function AsBuiltReport#143
7945899
8a3f891
rebelinux
Successfully merging a pull request may close this issue.
Description
Migrate chart code to separate function.
Additional Context
No response
Before submitting
The text was updated successfully, but these errors were encountered: