Skip to content

Commit c9711f8

Browse files
committed
remove TODO
1 parent 942fdfd commit c9711f8

1 file changed

Lines changed: 0 additions & 25 deletions

File tree

test/plots/reducers.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -245,28 +245,3 @@ export async function reducerGroupScale() {
245245
]
246246
});
247247
}
248-
249-
// TODO: implement {reduce: ƒ, scale}
250-
/*
251-
export async function reducerGroupScaleFunction() {
252-
const penguins = await d3.csv<any>("data/penguins.csv", d3.autoType);
253-
return Plot.plot({
254-
color: {scheme: "greys"},
255-
marks: [
256-
Plot.barY(
257-
penguins,
258-
Plot.groupX(
259-
{
260-
y: "count",
261-
fill: {
262-
reduce: (index: number[], values: any[]) => d3.mode(index, (i) => values[i]),
263-
scale: true
264-
}
265-
},
266-
{x: "species", fill: (d) => (d.island === "Biscoe" ? "orange" : "green"), fy: "sex"}
267-
)
268-
)
269-
]
270-
});
271-
}
272-
*/

0 commit comments

Comments
 (0)