Plot.plot({
x: { tick: 10 },
y: { tick: 10 },
marks: [
Plot.cell(chessBwTally, Plot.bin({
fill: "sum",
thresholds: 20
}, {
x: "white_rating",
y: "black_rating",
fill: "winner_val"
})),
Plot.text(chessBwTally, Plot.bin({
thresholds: 20
}, {
x: "white_rating",
y: "black_rating",
text: "winner_val"
})),
],
color: { scheme: "Greys", reverse: true, legend: true },
width: 800,
height: 800
})