{
const svg = d3.select(DOM.svg(ancho, alto))
.attr("border", border)
var border = 1
var borderColor = "black"
svg.append("rect")
.attr("x", 0)
.attr("y", 0)
.attr("width", ancho)
.attr("height", alto)
.style("fill", "none")
.style("stroke", borderColor)
.style("stroke-width", border);
let anchoBin = alto/datos.length;
svg.append("g")
.attr("fill", "steelblue")
.selectAll("rect")
.data(datos)
.enter().append("rect")
.attr("x", 0)
.attr("y", (d, i) => ancho - anchoBin*(i+1) - i)
.attr("width", (d) => x(d))
.attr("height", anchoBin);
return svg.node();
}