scatter = {
const outersvg = d3.select(DOM.svg(width + margin.left + margin.right,
height + margin.top + margin.bottom))
const svg = outersvg.append('g')
.attr("transform", "translate(" + margin.left + "," + margin.top + ")")
svg.selectAll('circle')
.data(countries)
.enter()
.append('circle')
.attr('cx', d => xScale(d.fertility))
.attr('cy', d => yScale(d.life_expect))
.attr('r', 5)
svg.selectAll('text')
.data(countries)
.enter()
.append('text')
.attr('x', d => xScale(d.fertility))
.attr('y', d => yScale(d.life_expect))
.attr('font-size', '11px')
.attr('font-family', 'sans-serif')
.attr('fill', 'red')
.text(d => d.country)
svg.append("g")
.attr("transform", "translate(0, " + height + ")")
.call(xAxis)
svg.append("g")
.call(yAxis)
svg.append("text")
.attr("transform", "translate(" + (width/2) + "," + (height +
margin.bottom) + ")")
.style("text-anchor", "middle")
.attr("font-family", "sans-serif")
.attr("font-size", "12px")
.text("Taxa de Fertilidade");
svg.append("text")
.attr("transform", "rotate(-90)")
.attr("y", 0 - margin.left)
.attr("x",0 - (height / 2))
.attr("dy", "1em")
.style("text-anchor", "middle")
.attr("font-family", "sans-serif")
.attr("font-size", "12px")
.text("Expectativa de Vida");
return outersvg.node()
}