renderItem = (itemSrc) => {
const svg = d3.create("svg").attr("viewBox", [0, 0, itemWidth, itemHeight]);
svg
.selectAll("rect")
.data(itemSrc)
.join("rect")
.attr("x", (d, i) => x(i))
.attr("y", (d) => y(d))
.attr("height", (d) => y(0) - y(d))
.attr("width", x.bandwidth())
.attr("stroke", "white")
.attr("stroke-size", 1);
return svg.node();
}