chart2 = {
const svg = d3.create("svg")
.attr('width',400)
.attr('height',400)
svg.append("g")
.call(xAxis)
.selectAll("text")
.style("font","11px sans-serif")
.style("text-anchor", "end")
.attr("dx", "-.8em")
.attr("dy", ".15em")
svg.append("g")
.call(yAxis)
.selectAll("text")
.style("font","11px sans-serif")
.style("text-anchor", "end")
.attr("dx", "-.8em")
.attr("dy", ".15em")
svg.append("g")
.selectAll("circle")
.data(reformattediris)
.join("circle")
.attr("cx", d => x(d.Longitud_Sepalo))
.attr("cy", d => y(d.Longitud_Petalo))
.attr("r", d => (d.Area_Petalo)*rad[d.Species])
.attr("fill", d => tipo[d.Species])
return svg.node()
}