Plot.plot({
marks: [
Plot.cell(factors, { x: "num", y: "prod", fill: "fill"}),
Plot.frame()
],
y: {
domain: [...Array(yMax).keys()].map((y, _) => y + 2),
grid: false,
label: null
},
x: {
domain: [...Array(xMax).keys()].map((x, _) => x + 2),
grid: false,
axis: "top",
label: null
},
height: 600,
weight: 100
})