test = {
const margin = {top: 10, right: 10, bottom: 10, left: 10};
const cHeight = 200;
const svg = d3.create('svg')
.attr('viewBox', `0 0 ${width} ${cHeight}`)
svg.append('g')
.attr('class', 'test-class')
.attr('transform', 'translate(10,20)')
.append('text')
.text('first node')
svg.append('g')
.attr('class', 'test-class')
.attr('transform', 'translate(10,40)')
.append('text')
.text('second node')
svg.append('g')
.attr('class', 'test-class')
.attr('transform', 'translate(10,60)')
.append('text')
.text('third node')
return svg.node()
}