chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height]);
svg.append("g")
.attr("fill", "pink")
.selectAll("rect")
.data(data)
.join("rect")
.attr("y", (d, i) => y(i))
.attr("x", 0)
.attr("width", width)
.attr("height", y.bandwidth())
svg.append("g")
.attr("fill", "skyblue")
.selectAll("rect")
.data(data)
.join("rect")
.attr("y", (d, i) => y(i))
.attr("x", d => 0)
.attr("width", d => x(d.CASE_RATE_PER_100K))
.attr("height", y.bandwidth());
return svg.node();
}