Grouped Bar Chart
ts
StackX({ spacing: 16, sharedScale: true },
For(groupBy(seafood, "lake"), (lake, key) =>
StackX({ key, spacing: 1 },
For(lake, (d) =>
Rect({ w: 12, h: v(d.count), fill: v(d.species) })))),
).render(root, { w: 500, h: 300, axes: true });