I have made some really cool pie charts with Adam’s tutorials on YouTube, but they all seem to center around windows items with powershell properties. Is it possible to generate a pie chart with SQL output that is stored in a variable?
My data is in a variable called $cache:piedata and the output is like this:
service entry_time_stamp
I want to be able to auto generate the pie chart based on the number of service items that appear and group them by that number, but I can’t seem to do it.
This is what I tried, but no dice. Any hints would be awesome
$Monitoring = New-UDPage -Name "Monitoring" -Icon television -Content {
New-UDChart -Title "Pie Test" -Type Pie -Endpoint {
$cache:piedata | Out-UDChartData -Dataset $cache:piedata -LabelProperty service -DatasetLabel "service"
}
}