Radial Ribbons
A ribbon chart of seafood catch in polar coordinates: arcs for the bars, and radial areas that spiral between them. A bar starts every sixth of a turn from 12 o'clock, and the radius is linear, so the ribbons keep their thickness. After GoFish.
js
const seafood = await d3.csv("/data/seafood.csv", d3.autoType);
const renderer = cm.svg({width: 640, height: 640});
const root = cm.flow().renderer(renderer);
root
.data(seafood)
.transform(cm.encode, {x: "lake", y: "count", fill: "species"})
.transform(cm.spreadX, {paddingInner: 0.9, paddingOuter: 0.45, align: 0})
.transform(cm.stackY, {order: "value"})
.transform(cm.polar, {innerRadius: 0.2, x: {axis: "outer"}, y: {type: "linear", axis: true}})
.add(cm.arc)
.add(cm.areaRadial, {curve: "bump-x", fillOpacity: 0.8});
root.render();
document.body.append(renderer.node());