{
d3.selectAll('svg').remove()
const d3SelectionOfSVGCanvas = d3.select('.parent-DOM-element-for-enter-and-append-example')
.append('svg')
.attr('class', 'my-canvas')
.attr('width', 100)
.attr('height', 100)
d3SelectionOfSVGCanvas.append('circle')
.attr('cx', 10)
.attr('cy', 10)
.attr('r', 10)
.attr('fill', 'red')
d3SelectionOfSVGCanvas.selectAll('circle')
.transition()
.duration(2000)
.attr('fill', 'mediumorchid')
.attr('r', '50')
}