import { OrdinalCustomChart } from "semiotic/ordinal" import { bobaLayout } from "semiotic/recipes" const drinks = [ { name: "Classic", teaVolume: 470, bobaVolume: 95, iceVolume: 60 }, { name: "Extra Boba", teaVolume: 360, bobaVolume: 240, iceVolume: 45 }, { name: "Light Ice", teaVolume: 500, bobaVolume: 95, iceVolume: 12 }, { name: "Mega", teaVolume: 660, bobaVolume: 150, iceVolume: 120 }, ] <OrdinalCustomChart data={drinks} categoryAccessor="name" // one cup per drink, on the band scale layout={bobaLayout} // emits a transparent hit-rect per cup layoutConfig={{ categoryAccessor: "name" }} // + the cup, tea, pearls, ice, straw as overlays width={760} height={420} />