{
const svg = d3.create("svg")
.attr("width",350)
.attr("height",350);
svg.append("g")
.call(xAxis);
svg.append("g")
.call(yAxis);
svg.append("text")
.attr("class", "x label")
.attr("text-anchor", "end")
.attr("x", width/2 + margin.left)
.attr("y", height - margin.top + 15)
.text("Longitud Sépalo");
svg.append("text")
.attr("class","y label")
.attr("text-anchor", "end")
.attr("transform", "rotate(-90)")
.attr("y", margin.left - 35)
.attr("x", -height/2 + margin.bottom + 25)
.text("Longitud Pétalo");
svg.selectAll("circle")
.data(iris)
.enter()
.append("circle")
.attr("cx", function(d) {return x(d.longitud_sepalo);} )
.attr("cy", function(d) {return y(d.longitud_petalo);} )
.attr("r" , 3)
.style("fill", d => colores(d));
return svg.node();
}