Plot.plot({
x: {
ticks: simpsons.filter((d) => d.number_in_season === 1).map((d) => d.id),
tickFormat: (x) => simpsons.find((d) => d.id === x).season,
label: "Season →",
labelAnchor: "right"
},
color: {
type: "linear",
scheme: "PiYG"
},
marks: [
Plot.cell(simpsons, {x: "id", fill: "imdb_rating"})
]
})