Finance¶
-Type waterfall shows how steps (-X) change a total; steps named in -Totals show the running
total. -Type candlestick takes -Open, -Close, -Low, -High per date and -Volume in its own
panel.
Waterfall: from revenue to result¶
$bridge = @(
[pscustomobject]@{ Step = 'Revenue'; EUR = 1200000 }
[pscustomobject]@{ Step = 'Staff'; EUR = -540000 }
[pscustomobject]@{ Step = 'Licences'; EUR = -210000 }
[pscustomobject]@{ Step = 'Hardware'; EUR = -130000 }
[pscustomobject]@{ Step = 'Other'; EUR = -60000 }
[pscustomobject]@{ Step = 'Result'; EUR = 0 }
)
New-UDEChart -Data $bridge -Type waterfall -X Step -Y EUR -Totals Result -Format 'compactcurrency:EUR' -Height 340px
Candlestick with volume¶
$rng = [System.Random]::new(11); $price = 100
$days = 0..59 | ForEach-Object {
$open = $price; $price = [math]::Round($price + $rng.NextDouble() * 6 - 3, 2)
[pscustomobject]@{ Date = ([datetime]'2026-08-03').AddDays($_); Open = $open; Close = $price; Low = [math]::Min($open, $price) - 1; High = [math]::Max($open, $price) + 1; Volume = $rng.Next(1000, 5000) }
}
New-UDEChart -Data $days -Type candlestick -X Date -Open Open -Close Close -Low Low -High High -Volume Volume -Height 380px