In your CodePen demo, the color of gauge .two never changes as the value changes. Instead, the color remains the value it was set in your CSS ("orange").
I believe this is an issue where the style attribute of an SVG element, such as a <path />, cannot be set using JavaScript.
In your CodePen demo, the color of gauge
.two
never changes as the value changes. Instead, the color remains the value it was set in your CSS ("orange").I believe this is an issue where the style attribute of an SVG element, such as a
<path />
, cannot be set using JavaScript.