barras1 = {
const width = 700
const height = 200
const svg = d3.select(DOM.svg(width, height))
const arrayOfNumbers = [10, 15, 30, 50, 80, 65, 55, 30, 20, 10, 8]
svg.selectAll('rect')
.data(arrayOfNumbers)
.enter()
.append('rect')
.attr('x', (d, i) => i * 30 + 20)
.attr('y', (d) => 180 - d*2)
.attr('width', 20)
.attr('height', d => d*2)
.attr('fill', "DarkSlateGrey")
svg.selectAll("text")
.data(arrayOfNumbers)
.enter()
.append("text")
.attr('x', (d, i) => i * 30 + 20 + 10)
.attr('y', (d) => 175 - d*2)
.text((d) => d)
.style("font-family","Comic sans")
.style("font-size", "14px")
.style("text-anchor", "middle");
return svg.node()
}