{
const svg = d3.create("svg").attr("width",350).attr("height",350).attr("viewBox", [0, 0, shape.width, shape.height]);
svg.append("g").call(xAxis)
svg.append("g").call(yAxis);
svg.append("text").attr("x", shape.width-200).attr("y", shape.height-20).text(campo_x)
svg.append("text").attr("x", shape.width-500).attr("y", shape.height-270).text(campo_y)
.attr("transform", "rotate(-90)" )
svg.append("g")
.selectAll("dot")
.data(data)
.join("circle")
.attr("cx", d => x(d[campo_x]))
.attr("cy", d => y(d[campo_y]))
.attr("fill", "red")
.attr("r",1.5)
return svg.node();
}