Waffles
Seafood catch by lake, one square per fish. cm.unitY turns each count into that many squares, and nested spreads put the squares of each lake in rows of 5. After GoFish.
js
const seafood = await d3.csv("/data/seafood.csv", d3.autoType);
const renderer = cm.svg({width: 640, height: 400});
const root = cm.flow().renderer(renderer);
root
.data(seafood)
.transform(cm.encode, {x: "lake", y: "count", fill: "species"})
.transform(cm.spreadX)
.transform(cm.unitY)
.transform(cm.spreadY, {chunk: 5})
.transform(cm.spreadX)
.transform(cm.plane, {y: {axis: null}})
.add(cm.rect);
root.render();
document.body.append(renderer.node());