You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The data is provided by URL parameters. It's a generic shield.
Visualization options:
Visualize a raw percentage (0..100%)
Visualize a percentage based on numerator, denominator (0..100%)
Select the color gradient:
red-green
green-red
red-yellow-green
green-yellow-red
user-defined?
Visualize with typical shields.io styles, logo, label, ....
If badge content is empty, the percentage is shown with %-sign.
Otherwise, the badge content is shown.
URL parameters:
?....&percentage=XX&...., where XX is 0..100 (integer) or 0.00..1.00 (real)
?....&numerator=XX&denominator=YY&...., where XX is any positive integer 0..∞ and YY is any positive integer 1..∞
?....&gradient=XX&...., where XX is
red-green, 0 is red, 100 is green
green-red, 0 is green, 100 is red
red-yellow-green, 0 is red, 50 is yellow, 100 is green
green-yellow-red, 0 is green, 50 is yellow, 100 is red
YYYY1-YYYY2-....-YYYYN, 0 is YYYY1, .... 100 is YYYYN, where NNNN might be a CSS color name or hex-color code.
The gradient is equally distributed into N equally sized portions. In case users want a larger yellow section, yellow could be repeated like red-yellow-yellow-green.
Is - a good sepertor between color names?
🎤 Motivation
Shields.io has a generic shield allowing to handled lots of shield use cases, that aren't provided by a data source. This is already awesome for text related use cases.
Besides text, some shields offer a gradient coloring like in code coverage or programming style ratings. Unfortunately, such a colored rating isn't available as a generic shield, where a user can provide a percentage or fraction, which gets translated to a color within a color gradient range.
📋 Description
Note
Based on issue #3775, a new clean badge request with more specific requirements.
To visualize progress, a static progress/percentage badge would be helpful.
Usecases:
Examples:
🔗 Data
The data is provided by URL parameters. It's a generic shield.
Visualization options:
Otherwise, the badge content is shown.
URL parameters:
?....&percentage=XX&...., where XX is 0..100 (integer) or 0.00..1.00 (real)?....&numerator=XX&denominator=YY&...., where XX is any positive integer 0..∞ and YY is any positive integer 1..∞?....&gradient=XX&...., where XX isred-green, 0 is red, 100 is greengreen-red, 0 is green, 100 is redred-yellow-green, 0 is red, 50 is yellow, 100 is greengreen-yellow-red, 0 is green, 50 is yellow, 100 is redYYYY1-YYYY2-....-YYYYN, 0 is YYYY1, .... 100 is YYYYN, where NNNN might be a CSS color name or hex-color code.The gradient is equally distributed into N equally sized portions. In case users want a larger yellow section, yellow could be repeated like
red-yellow-yellow-green.Is
-a good sepertor between color names?🎤 Motivation
Shields.io has a generic shield allowing to handled lots of shield use cases, that aren't provided by a data source. This is already awesome for text related use cases.
Besides text, some shields offer a gradient coloring like in code coverage or programming style ratings. Unfortunately, such a colored rating isn't available as a generic shield, where a user can provide a percentage or fraction, which gets translated to a color within a color gradient range.