rank: ordinals with a superscript suffix
| Team | SRS rank |
|---|---|
| KC | 10th |
| LAC | 9th |
| DEN | 8th |
| LV | 26th |
| BUF | 4th |
| MIA | 21st |
| NYJ | 24th |
| NE | 29th |
import { STANDINGS, type Standing } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";
const spec = defineTable<Standing>()
.columns((c) => [c.text("team"), c.rank("srs_rank", { label: "SRS rank" })])
.title("AFC, 2024: league-wide SRS rank")
.build();
await renderHTMLAsync(spec, STANDINGS);
Tags: kind · rank · gt_fmt_rank. All sdvtables examples.