how to display percentage the form a circle or arc in JavaScript. I want to display the black color circumference in percentage. Say If I input max value 20 and min value 10, it should display 50% of a circle (arc) How to do it?.
<!DOCTYPE html>
<html>
<body>
//displays circle with dimensions
<svg height="300" width="300">
<circle cx="150" cy="100" r="90" stroke="brown" stroke-width="10" fill="white"/>
</svg>
<br/><br/>
maxValue: <input type="text" value="" id="value1" /><br/>
minValue: <input type="text" value="" id="value2" /><br/>
<input type="button" value="Stroke-percentage" onclick="" />
stroke-percentage = maxValue/minValue * 100
</body>
</html>