{
const svg = d3.create("svg")
.attr("viewBox", [-width / 2, -height / 2, width, height]);
for(let j=0; j < arr[s].length; j++){
svg
.append('g')
.selectAll("ellipse")
.data(desiredData[arr[s][j]])
.join("ellipse")
.attr("cx", 0)
.attr("cy", 0)
.attr("ry", d => rScale(d.deaths))
.attr("rx", d => rScale(d.deaths)/2)
.attr("class", "rotate")
.attr("fill", d => colorByContinent3(d.region, 0.06))
.attr("stroke", "white")
.attr("stroke-width", strokeWidth)
.attr('transform', function(d, i) {
var rx = Math.cos(xcos_(i)) * outerRadius_;
var ry = Math.sin(ysin_(i)) * outerRadius_;
return `translate(${rx},${ry})
rotate(${xcos_(i) * 180 /Math.PI + 90})
scale(${0.8})`;
})
}
return svg.node()
}