Distributions¶
-Type histogram bins the values of -Y (-Bins sets the number) and draws the median unless
-MarkLine says otherwise; -Type boxplot computes quartiles, whiskers and outliers per -X group.
Lead time histogram with SLA¶
Bins, a median line and a fixed SLA line; durations in hours.
$rng = [System.Random]::new(7)
$lead = 1..600 | ForEach-Object { [pscustomobject]@{ Hours = [math]::Round([math]::Exp(2.6 + 0.8 * ($rng.NextDouble() + $rng.NextDouble() - 1)), 1) } }
New-UDEChart -Data $lead -Type histogram -Y Hours -Bins 24 -Format 'duration:h' -MarkLine 'median', @{ value = 48; name = 'SLA'; color = '#e53935' } -Height 320px
Boxplot per team¶
Quartiles, whiskers and outliers are computed from the raw values.
$rng = [System.Random]::new(9)
$rows = foreach ($team in 'Service Desk', 'Network', 'Server', 'Applications') { 1..80 | ForEach-Object { [pscustomobject]@{ Team = $team; Hours = [math]::Round(4 + $team.Length * $rng.NextDouble() * 3, 1) } } }
New-UDEChart -Data $rows -Type boxplot -X Team -Y Hours -Format 'number:1' -Height 320px