Looks like you’re just missing the y: "number"
for the line to tell the bin transform what values to reduce.
Plot.plot({
marks: [
Plot.lineY(data, Plot.binX({ y: "mean" }, { x: "weight", y: "number", z: "year" }))
]
})
Looks like you’re just missing the y: "number"
for the line to tell the bin transform what values to reduce.
Plot.plot({
marks: [
Plot.lineY(data, Plot.binX({ y: "mean" }, { x: "weight", y: "number", z: "year" }))
]
})