Plot.plot({
marginLeft: 20,
x: { inset: 8 },
y: {
type: "point",
grid: true,
tickFormat: Plot.formatWeekday("en", "narrow")
},
marks: [
Plot.image(apod.slice(0, 40), {
x: "date",
y: (d) => d.date.getUTCDay(),
src: "url",
title: "title",
preserveAspectRatio: "none",
rotate: () => 360*Math.random()
})
]
})