Using plot() for data refinement only

Hi there,

I am having a hard time refining my dataset with d3.group() and d3.rollup() and was wondering if it would be possible to use the easy syntax of the Plot library for grouping and stuff like that on the data records.

I had something in mind like plot(data, plot.group({y: "count"}, {x: "age", y: ""})).getData().

Just a quick idea, maybe I just missed the point completely.

Sure. You can use mark.initialize() to get the computed channels. Here’s a quick example

3 Likes