Area in the Terminal
Apple's daily close as an area of : cells under its line, on the terminal renderer.
js
const aapl = await d3.csv("/data/aapl.csv", d3.autoType);
const renderer = cm.terminal({width: 640, height: 400, units: "pixels"});
const root = cm.flow().renderer(renderer);
root
.data(aapl)
.transform(cm.encode, {x: "Date", y: "Close"})
.transform(cm.stackY)
.transform(cm.plane)
.add(cm.areaY, {fill: "cell(:, steelblue)"})
.add(cm.lineY);
root.render();
document.body.append(renderer.node());