bar_chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.call(xAxis)
.selectAll("text")
.style("text-anchor", "end")
.style("font","6px sans-serif")
.attr("dx", "-.8em")
.attr("dy", ".15em")
.attr("transform", "rotate(-65)" );
svg.append("g")
.call(yAxis);
svg.append("g")
.attr("fill", "steelblue")
.selectAll("rect")
.data(datos_desempleo)
.join("rect")
.attr("x", d => x(d.ciudad))
.attr("width", x.bandwidth())
.attr("y", d => y(d.desempleo))
.attr("height", d => y(0) - y(d.desempleo));
return svg.node();
}