Using Donut Charts to display goal progress

2
Is there a way to set a numerical value for completing the donut? I want to be able to have the total amount set to the goal and the amount shaded to show how complete it is, e.g. if the goal is 10000 steps and you have 8000 steps completed, you should see 80% of the donut shaded to one color and the remaining in a different color. Additionally, I also want the color of the donut to change if the goal is met or exceeded. I currently have an Entity [Steps] with the attributes [Amount] and [Goal]. Is this possible and if so, how should I proceed?
asked
3 answers
2

You should use the chartsJS module. Do your math to calculate percentage, then create a pie chart with two data sets. The first will be your percent done and the second would be your percent remaining.

 

Or you could use the progress circle widget.

answered
1

I'll second the progress circle widget. It takes those 2 attributes you describe to create the circle: a current value and the max value (goal)

In the app store here: https://appstore.home.mendix.com/link/app/47783/Mendix/Progress-circle

answered
0

Or you could use:

https://appstore.home.mendix.com/link/app/44771/

answered