{
const boxHeight = 300;
const svg = d3.create('svg').attr('viewBox', [0, 0, width, boxHeight]);
const nodes = [
{ x: 50, y: 50 },
{ x: 150, y: 50 },
{ x: 170, y: 200 },
{ x: 350, y: 175 },
{ x: 500, y: 100 }
];
svg
.selectAll('circle')
.data(nodes)
.join('circle')
.attr('cx', d => d.x)
.attr('cy', d => d.y)
.attr('r', 20)
.style('fill', 'green');
return svg.node();
}