How can a radial progress bar be implemented, so that, for example, when clicking on a circle, that part of the circle that was before the click, and the percentage of the filled circle fell into the variable?

Here is the picture:

enter image description here

    1 answer 1

    The task is not completely clear.

    As a rule, various progress bars already receive some value, according to which they paint over the loading area. Those. this value is your variable.

    About the color change: Here the color is set via the fill attribute, change it when you click as you need and get what you want.

    My example is very local, there are a lot of libraries that allow you to create various progress bars.