I want to draw a ellipse by using arc. I did it for circle but i could not make it for ellipse. Please help me for ellipse
Code For Circle
var π = Math.PI,
τ = 2 * π,
n = 500;
var width = 300,
height = 200,
outerRadius = width / 2 - 20,
innerRadius = outerRadius - 20;
d3.select("svg").append("g")
.attr("transform", "translate(" + width / 2 + "," + 200 + ")")
.selectAll("path")
.data(d3.range(0, τ, τ / n))
.enter().append("path")
.attr("d", d3.svg.arc()
.outerRadius(outerRadius)
.innerRadius(innerRadius)
.startAngle(function(d) { return d; })
.endAngle(function(d) { return d + τ / n * 1.1; }))
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.4.11/d3.min.js"></script>
<svg width="960" height="960"></svg>