Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-GageSector dont work propably #472

Open
m4admin opened this issue Jan 23, 2025 · 2 comments
Open

New-GageSector dont work propably #472

m4admin opened this issue Jan 23, 2025 · 2 comments

Comments

@m4admin
Copy link

m4admin commented Jan 23, 2025

if using MaxValue and it isnt 100 then Gage is blue, but it should be red:

                New-HTMLGage -Label 'Fixes' -Value 52 -MaxValue 200  -Counter {
                    New-GageSector -Color Blue -Min 0 -Max 50
                    New-GageSector -Color Red -Min 51 -Max 200
                }

Maybe anyone could also tell me how i could force the default cage going from red to green insted of green to red color.

thanks

@PrzemyslawKlys
Copy link
Member

PrzemyslawKlys commented Jan 23, 2025

The value is in percentage, not the actual value. By default it's set to true.

Image

This means you would need to set maxvalue to 100 or something for 51 be red. I guess one should go thru available options:

And make relevant changes to PowerShell to accommodate setting it to false via PS. I don't think it's exposed.

At least I hope I understood question correct, as I don't see green in any code, so not sure what to think

@m4admin
Copy link
Author

m4admin commented Jan 23, 2025

Ohh thanks that helped. Did not seen it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants