Plot.plot({
height: 180,
marks: [
Plot.text(
equipment.filter(
(d) =>
!d.type.includes("Clothing") &&
!d.type.includes("Camp") &&
d.type !== "Underwear"
),
Plot.stackY({ y: "rank" }, { x: "rarity", text: "name", fy: "type" })
)
],
width,
height: 3000,
x: {
domain: ["story", "common", "uncommon", "rare", "very rare", "legendary"]
}
})