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