Plot.plot({
padding: 0,
grid: true,
x: { axis: "top", label: "Season" },
y: { label: "Episode" },
color: { type: "linear", scheme: "BrBG", legend: true },
marks: [
Plot.cell(power_rangers, {
x: "season_num",
y: "episode_num",
fill: "imdb_rating_episode",
inset: 0.5,
title: "episode_title"
}),
Plot.text(power_rangers, {
x: "season_num",
y: "episode_num",
text: (d) => d.imdb_rating_episode?.toFixed(1),
fill: "black"
})
],
width: 900
})