Plot.plot({
style: {
backgroundColor: "black",
fontFamily: "Marcellus",
fontSize: 12,
fontColor: "white"
},
marginLeft: 80,
y: { label: "Frequency" },
x: { label: null },
marks: [
Plot.barY(data, {
x: "season",
y: 1,
inset: 0.6,
fill: (d) => {
if (d.artist === "Stevie Wonder") return "#fe218b";
if (d.artist === "The Beatles") return "#fed700";
if (d.artist === "Elton John") return "#21b0fe";
return "#495057";
},
sort: "song",
title: (d) => `${d.artist} \n song: ${d.song}`,
sort: { y: "y", reverse: true }
}),
Plot.axisX({ fill: "white" }),
Plot.axisY({ fill: "white" })
],
width: 1000,
height: 800,
color: { legend: false }
})