example = {
var svg = d3.select(DOM.svg(width, height)).attr("id", "mysvg")
const bac = svg
.selectAll('path')
.data([{shapePath: bacillus}])
.enter()
.append('path')
.attr('d', d => d.shapePath)
.attr('stroke', 'black')
.attr('stroke-width', '5')
.attr('fill', 'lightgray')
.attr('transform', (d, i) => `translate(${(i % 10) * 50 + 80},${Math.floor(i / 10) * 60 + 170})`)
.attr('id', 'bac')
const circles = svg.selectAll('circle')
.data([
{x: 100, y: 200, id: 1},
{x: 30, y: 200, id: 2}
])
.enter()
.append('circle')
.attr('r', 10)
.attr('cx', d => d.x)
.attr('cy', d => d.y)
.attr('id', d => d.id)
return svg.node()
}