Hi
My Dashboard is made up of the following which may be the issue, as I really am still novice in this…
The following works and gives three boxes along the top and then one box below where the gaugues work but are all underneath each other
New-UDGrid -Container -Content {
New-UDGrid -Item -ExtraSmallSize 3 -Content {
New-UDPaper -Content {
New-UDElement -Tag ‘pre’ -Content {
#<…code…>
}
} -Elevation 2
}
New-UDGrid -Container -Content {
New-UDGrid -Item -ExtraSmallSize 4 -Content {
New-UDPaper -Content {
New-UDElement -Tag ‘pre’ -Content {
#<…code…>
}
} -Elevation 2
}
New-UDGrid -Container -Content {
New-UDGrid -Item -ExtraSmallSize 3 -Content {
New-UDPaper -Content {
New-UDElement -Tag ‘pre’ -Content {
#<…code…>
}
} -Elevation 2
}
New-UDGrid -Container -Content {
New-UDGrid -Item -ExtraSmallSize 12 -Content {
New-UDPaper -Content {
New-UDElement -Tag ‘pre’ -Content {
#This is where I want the Gauges
#This is the Code
Foreach ($VCPU in $VCPUresult) {
$VCPU.logical = $VCPU.logical -as [int]
New-UDHeading -Text $HyperVCPU.Hostname -Size 3
New-UDGaugeChart -Id “GoogleGauge” -Height 100 -Width 240 -Data {
New-UDGaugeData -Label “CPU” -Value ($HyperVCPU.logical)
}
}
} -Elevation 2
}
}
So I tried the following under the foreach code
New-UDGrid -Item -ExtraSmallSize 12 -Content {
New-UDPaper -Content {
New-UDElement -Tag ‘pre’ -Content {
#This is where I want the Gauges
#This is the Code
Foreach ($CPU in $CPUresult) {
New-UDRow -Columns {
New-UDColumn -SmallSize 12 -Content {
$CPU.logical = $CPU.logical -as [int]
New-UDHeading -Text $CPU.Hostname -Size 3
New-UDGaugeChart -Id “GoogleGauge” -Height 100 -Width 240 -Data {
New-UDGaugeData -Label “CPU” -Value ($CPU.logical)
}
}
}
}
} -Elevation 2
}
But this has no effect
Thanks