chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.attr("fill", "rgb(158,158,225)")
.attr("stroke", "rgb(8,48,107)")
.attr("stroke-width", 1.5)
.attr("fill-opacity","0.6")
.selectAll("rect")
.data(dataCount)
.join("rect")
.attr("x", d => x(d.cut))
.attr("y", d => y(d.count))
.attr("height", d => y(0) - y(d.count))
.attr("width", x.bandwidth())
.append("title")
.text(d => `${d.cut} = ${d.count}`);
svg.append("g")
.call(xAxis)
svg.append("g")
.call(yAxis);
svg.call(yTitle);
svg.call(graphTitle);
return svg.node();
}