Generate Id automatic in ionic 5 with angular

This part is the code

This is the result

The result is that the circle bar has to be the color of the card, but when I change the percentage, it changes the card on top and not the one on its left side.

I need help to solve this error

You missed to show us the code for css. I don’t see any class that describes the red color. only yellow and green. you need to check your css logic.