We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92fee30 commit c6f8323Copy full SHA for c6f8323
test/output/athletesSort.svg renamed to test/output/athletesSortFacet.svg
test/plots/athletes-sort.js
@@ -1,7 +1,7 @@
1
import * as Plot from "@observablehq/plot";
2
import * as d3 from "d3";
3
4
-export async function athletesSort() {
+export async function athletesSortFacet() {
5
const athletes = await d3.csv("data/athletes.csv", d3.autoType);
6
const female = (d) => d.sex === "female";
7
return Plot.barX(athletes, Plot.groupZ({x: "mean"}, {x: female, fy: "sport", sort: {fy: "x"}})).plot();
0 commit comments