showClusterPics = (c) => {
const container = d3.create("div");
const containerDiv = container.node();
container.style("display", "flex").style("flex-wrap", "wrap");
const pics = getClusterPics(c, 16);
const imgs = container
.selectAll("div")
.data(pics)
.join("div")
.style("background-image", (id) => `url(${id2img(id)})`)
.style("height", "128px")
.style("width", "200px")
.style("margin", "12px 16px")
.style("background-size", "contain")
.style("background-repeat", "no-repeat")
.style("background-position", "center")
.style("border-radius", "4px");
return containerDiv;
}