Heatmaps and calendars¶
-Type heatmap takes two category columns (-X, -Y) and a -Value, with a colour scale from
-Min to -Max; -Type calendar draws one calendar per year, limited to the days with data.
Weekday x hour¶
$days = 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday', 'Sunday'
$grid = foreach ($h in 0..23) { foreach ($d in $days) { [pscustomobject]@{ Hour = '{0:00}' -f $h; Weekday = $d; Tickets = [math]::Max(0, [math]::Round(30 * [math]::Sin(($h - 6) / 4) * ($(if ($days.IndexOf($d) -lt 5) { 1 } else { 0.3 })))) } } }
New-UDEChart -Data $grid -Type heatmap -X Hour -Y Weekday -Value Tickets -Height 320px -Options @{ yAxis = @{ inverse = $true } }
Calendar¶
$rng = [System.Random]::new(3)
$days = 0..240 | ForEach-Object { [pscustomobject]@{ Date = ([datetime]'2026-03-01').AddDays($_).ToString('yyyy-MM-dd'); Changes = $rng.Next(0, 25) } }
New-UDEChart -Data $days -Type calendar -X Date -Y Changes -Height 220px