I've implemented the NgCircleProgressModule library to display a circle with a percentage value in the center.
It seems that the progress value remains static and only updates when the buttons are clicked.
Clicking on the 25% button within the circle displays the same percentage value and button.
Currently, I'm manually changing the value using [percent] = "25"
, but I'm unsure how to create a function to dynamically update the [percent] based on the button clicked.
Does anyone have a solution for this?
HTML
<circle-progress
[percent]="progress"
[radius]="100"
[outerStrokeWidth]="10"
[innerStrokeWidth]="10"
[space] = "-10"
[outerStrokeColor]="'#4882c2'"
[innerStrokeColor]="'#e7e8ea'"
[titleFontSize]= "24"
[unitsFontSize]= "24"
[showSubtitle] = "false"
[animation]="true"
[animationDuration]="300"
[startFromZero]="false"
[responsive]="true"
></circle-progress>
<button>25%</button>