Plot.plot({
facet: { data: olympians, y: "sport", marginLeft: 150 },
marks: [
Plot.frame({ stroke: "#ddd", strokeWidth: 0.5 }),
Plot.dot(olympians, { x: "weight", y: "sex", fill: "sex", r: 1 })
],
height: 600,
marginTop: 0,
x: { inset: 10, grid: true, label: "weight (kg)" },
y: { axis: null, inset: 3 },
color: { legend: true }
})