I have a progress bar svg where the fill color and the text color need to update dynamically depending on the progress level. Something similar to this.
From this cod