circlesWithGroups = {
const width = 1000;
const height = 100;
const container = d3.select(DOM.svg(width, height));
const arr = [ 20, 5, 10, 25, 15 ]
const componentGroup =
container.selectAll("g")
.data(arr)
.enter().append("g")
.attr("class", "circleGroup")
.attr("transform", (d, i) => `translate(${((i+1) * 50)}, 50)`);
componentGroup
.append("circle")
.attr("r", d=> d)
.attr("fill", "steelblue");
componentGroup
.append("text")
.attr("fill", "yellow")
.attr("text-anchor", "middle")
.style("font", "0.75em sans-serif")
.attr("dy", "0.35em")
.text(d => d);
return container.node();
}