-
-
Notifications
You must be signed in to change notification settings - Fork 267
Radial Progress Bar #175
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
Radial Progress Bar #175
Conversation
Angles management is too complicated, I'm trying to change this. |
No more complicated rules on angles as they are standardized using modulo and tests. |
I stay on "draft" stage: I'd like to change |
Thanks for the update, and sorry for the action bot commit, you can disable it on your repository if it's a problem, or work on a branch instead of main (since the bot only update previews on main branch) |
Eventually I wrote discontinued bar possibility. |
I propose this radial progress bar.
xc
andyc
parameters. Postionnal parameters.value
,min_value
andmax_value
are kept fromDisplayProgressBar
methodradius
parameter is the outer radius of the bar. Postionnal parameter.bar_width
the width of the bar (>0 and <radius). Postionnal parameters.bar_color
kept fromDisplayProgressBar
methodangle_start
the start angle (0% of the value). Default is 0 (3 o'clock)angle_end
the end angle (100% of the value). Default is 360clockwise
a boolean specifying if the bar progresses clockwise (default: True) or counter-clockwise (False)angle_steps
the number of sectors (positive integer value) fromangle_start
toangle_end
. Default is 10.angle_sep
(>0) the angle between two steps. Default is 5.value
,min_value
andmax_value
(the value is simply normalized). This text can be controlled using five parameters:text
text to display. Default isNone
and percentage will be displayedwith_text
a boolean to decide if a text will be displayed. Default isTrue
font
,font_color
andfont_size
fromDisplayProgressBar
method are keptWhy does this radial progress bar embed a text?
Actually, fake transparency mechanism is used and it's hard to have a radial bar free from the text.
Can the bar change its color according to the value?
A library like
colour
offers a simple way to create a table of needed colors. In the following example, acolors
table is created for 101 integer values (from 0 to 100) usingColor
function:Further using
DisplayRadialProgressBar
method, we specify the color to use according to a variable, belowtemperature
is used:Can it display a discontinued line?
Not for the moment...
Examples



edit: formatting
edit2: simplified rules to specify angles
edit3: discontinued bar
edit4: positionnal parameters