Open cbruce11 opened 7 years ago
You can use the onRender-Method to do this. Use $event as current progress value (argument) and a variable for the color. Like:
HML
<round-progress
[current]="progressValue"
[max]="100"
[color]="progressColor"
(onRender)="progressRender($event)"
></round-progress>
TypeScript
progressRender(progress: number) {
if ((progress < 10) || (progress > 90)) {
this.progressColor = "#f53d3d";
} else {
this.progressColor = "#32db64";
}
}
@domske it is not working
can you explain it clearly
Is there anyway to have the progress bar change for a certain section of the circle? Say the max is 100 and 30-45 is red while the rest of the circle is green