{
const svg = d3.create("svg")
.attr("width",width)
.attr("height",height);
var xAxis = function (g) {
return g.attr("transform", `translate(0,${margin.top})`)
.call(d3.axisTop(x))
}
var yAxis = function (g) {
return g.attr("transform", `translate(${margin.left},0)`)
.call(d3.axisLeft(y))}
svg.append("g").call(xAxis);
svg.append("g").call(yAxis);
svg.append("g")
.attr("fill", "blue")
.selectAll("circle")
.data(iris)
.enter()
.append("circle")
.attr("cx", d => x(d.longitud_sepalo) )
.attr("cy", d => y(d.longitud_petalo) )
.attr("r" , d => radius(d.area_petalo) )
.style("fill", d => color2(d.area_petalo));
return svg.node();
}