{
const svg = d3.select(DOM.svg(width, height))
.style("width", width)
.style("height", height)
svg
.append("g")
.attr("class", "bottom")
.attr("transform", "translate(0," + (height-margin.bottom) + ")")
.call(d3.axisBottom(x));
svg.append("g")
.attr("class", "left")
.attr("transform", "translate("+ (margin.left) + ",0)")
.call(d3.axisLeft(y));
svg.append("circle")
.attr("cx", x(movingX))
.attr("cy", y(movingY))
.attr("r",5)
.style("fill", "black")
.style("stroke","black")
const line = d3.line()
.x(function(d) { return x(d[0]); })
.y(function(d) { return y(d[1]); })
svg.append("path")
.attr("d",line(pathCoordinates))
.style("fill", "none")
.style("stroke","black")
yield svg.node()
}