{
let ringsGroup = d3.select(ringsSVG).selectAll(".ringGroup")
.data([1])
.join("g")
.classed("ringGroup",true)
.attr("transform","translate(" + center.x + " " + center.y + ")");
let rings = ringsGroup.selectAll(".ring")
.data(data)
.join("path")
.classed("ring",true)
.style("stroke",d => ringColors[d.type])
.style("stroke-width",d => d.value/100 * 10 + "px")
.attr("d", d => "M " + startPoint(d).x + " " + startPoint(d).y +
" A " + arcRadius(d) + " " + arcRadius(d) +
" 0" +
" " + largeArcFlag(d) +
" 1 " +
endPoint(d).x + " " + endPoint(d).y);
let labels = ringsGroup.selectAll(".textLabel")
.data(data)
.join("text")
.attr("x",-8)
.attr("y",d => startPoint(d).y + 3)
.classed("textLabel",true)
.text(d => d.type);
}