mergeStack: two columns in one cell, with a headshot
| Quarterback | Wins |
|---|---|
![]() Patrick Mahomes West | 15 |
![]() Justin Herbert West | 11 |
![]() Bo Nix West | 10 |
![]() Gardner Minshew West | 4 |
![]() Josh Allen East | 13 |
![]() Tua Tagovailoa East | 8 |
![]() Aaron Rodgers East | 5 |
![]() Drake Maye East | 4 |
import { STANDINGS, type Standing } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";
// reactablefmtr merge_column: the quarterback with his division below, each in its own size, colour and weight.
const spec = defineTable<Standing>()
.columns((c) => [
c.mergeStack("qb", "division", {
label: "Quarterback",
position: "below",
mark: "headshot",
markKey: "qb_espn_id",
league: "nfl",
markHeight: 32,
}),
c.int("wins"),
])
.title("AFC, 2024")
.build();
await renderHTMLAsync(spec, STANDINGS);
Tags: kind · mergeStack · merge_column · reactablefmtr · nfl. All sdvtables examples.







