chart = {
const svg = d3.create("svg").attr("viewBox", [0, 0, 800, 800]);
svg
.append("g")
.attr("fill", "steelblue")
.selectAll("rect")
.data(reaction_count)
.join("rect")
.attr("x", (d, i) => x(i))
.attr("y", d => y(d.value))
.attr("height", d => y(0) - y(d.value))
.attr("width", x.bandwidth());
svg
.append("g")
.call(xAxis)
.selectAll("text")
.style("text-anchor", "end")
.attr("transform", function(d) {
return "rotate(-30)";
});
svg.append("g").call(yAxis);
return svg.node();
}