Plot.plot({
marginLeft: 80,
marginBottom: 90,
color: { legend: true },
x: { tickRotate: -30, label: "Species" },
marks: [
Plot.barY(species.slice(0, 10), {
x: "SpeciesName",
y: "Count",
sort: { x: "y", reverse: true },
fill: (d) =>
d.SpeciesName === jacarandaSpeciesName ? "violet" : "black",
tip: true
}),
Plot.ruleY([0])
]
})