I am still new to Powershell Universal, but I have a small site setup.
I have grabbed some counters from a few servers and this show correctly using the component UniversalDashboard.UDGaugeChart.
In my dashboard the Gauges always show underneath each other, is there a way so they show in a line?
I am running the following after getting my counters
Totally forgot I cooked up this badboy component, I am happy to do a brief demo of how to get it side-by-side. Although just having a quick butchers at the code you done, I think you should have a read on the differences between CONTENT script blocks and ENDPOINT script blocks.
I mean the demo on the marketplace Ironman Software Marketplace - UniversalDashboard.UDGaugeChart does give you a demonstration of using this. As you can see I put it in a ENDPOINT so it updates every 5 seconds
I did a blog here on the differences https://psdevuk.github.io/ud-flix/Content-vs-Endpoint/
Is it essential you pass the data via a foreach block?
I am going to upgrade to powershell universal and will make sure I make this my first page to create ok
Thanks for the comments, I did think about an endpoint but the thing that stopped me, and this was my wrong understanding, but I read that an endpoint runs under the credential that you run the services as, and I want to be able to run different script blocks using different credentials, saved as a secret variable, and didnt think an endpoint would work this way, now I have tested and understand this better.
I dont need to run a foreach but as I used an invoke-command to go and get the stats for several servers though one invoke command, running at the same time I thought would be quicker and then using a foreach to give each gauge a variable. I did realise that this at the minute would not auto refresh.
I have just done my page without the foreach and also using the endpoint and I can see this is a better way to do it as the page loads quicker and also refreshes.
Thanks I now have a better understanding and also think that now using New-UDGrid with New-UDElement, I have already have them side by side.
Thanks a lot for pointing me in the right direction !!!