caseStripes = {
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
const stripeWidth = x(1) - x(0) + 1;
svg
.selectAll("rect")
.data(data)
.enter()
.append("rect")
.attr("height", height)
.attr("width", stripeWidth)
.attr("fill", (d) => (isNaN(d) ? "#f3efecff" : color(d)))
.attr("x", (d, i) => x(i))
.attr("y", 0);
return svg.node();
}