Shares¶
pie, donut and funnel take a name (-X) and a value (-Y); labels show value and share.
-Rose turns a pie into a Nightingale chart. treemap and sunburst take a hierarchy in -Path
(columns from the root, or one column "a/b/c") and zoom in on a click. Labels inside a filled shape are
dark or white, whichever contrasts more with the fill.
Donut¶
Labels with value and share; small slices move their label inside on narrow screens.
$channels = @(
[pscustomobject]@{ Channel = 'Mail'; Tickets = 812 }
[pscustomobject]@{ Channel = 'Phone'; Tickets = 455 }
[pscustomobject]@{ Channel = 'Portal'; Tickets = 390 }
[pscustomobject]@{ Channel = 'Monitoring'; Tickets = 168 }
)
New-UDEChart -Data $channels -Type donut -X Channel -Y Tickets -Height 320px
Funnel¶
$stages = @(
[pscustomobject]@{ Stage = 'Created'; Tickets = 2000 }
[pscustomobject]@{ Stage = 'Answered within 1 h'; Tickets = 1640 }
[pscustomobject]@{ Stage = 'Closed'; Tickets = 1810 }
[pscustomobject]@{ Stage = 'Closed within SLA'; Tickets = 1525 }
)
New-UDEChart -Data $stages -Type funnel -X Stage -Y Tickets -Height 320px
Treemap from paths¶
-Path takes the levels from the root; click a box to zoom in.
$costs = @(
[pscustomobject]@{ Area = 'Infrastructure'; Item = 'Compute'; EUR = 42000 }
[pscustomobject]@{ Area = 'Infrastructure'; Item = 'Storage'; EUR = 18500 }
[pscustomobject]@{ Area = 'Infrastructure'; Item = 'Network'; EUR = 9200 }
[pscustomobject]@{ Area = 'Licences'; Item = 'Microsoft'; EUR = 31000 }
[pscustomobject]@{ Area = 'Licences'; Item = 'Backup'; EUR = 7600 }
[pscustomobject]@{ Area = 'Staff'; Item = 'Operations'; EUR = 54000 }
)
New-UDEChart -Data $costs -Type treemap -Path Area, Item -Y EUR -Format 'compactcurrency:EUR' -Height 340px