chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height])
.call(zoom);
svg.append("g")
.attr("class", "bars")
.attr("fill", "steelblue")
.selectAll("rect")
.data(sortedData)
.join("rect")
.attr("x", d => x(d.County))
.attr("y", d => y(d.Cases))
.attr("height", d => y(0) - y(d.Cases))
.attr("width", x.bandwidth());
svg.append("g")
.attr("class", "x-axis")
.call(xAxis);
svg.append("g")
.attr("class", "y-axis")
.call(yAxis);
return svg.node();
}