Skip to content

Percentage colors #687

Answered by CarterLi
ShadowAce asked this question in Q&A
Jan 18, 2024 · 3 comments · 1 reply
Discussion options

You must be logged in to vote
{
    "type": "disk",
    "percent": {
        "green": 20, // Shows result in green when the usage is less than 20%
        "yellow": 50 // Shows result in yellow when the usage is between 20% and 50%
                     // Shows result in red when the usage is greater than 50%
    }
}

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ShadowAce
Comment options

You must be logged in to vote
1 reply
@CarterLi
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants