int: whole numbers
| Team | W | L | PF | PA |
|---|---|---|---|---|
| KC | 15 | 2 | 385 | 326 |
| LAC | 11 | 6 | 402 | 301 |
| DEN | 10 | 7 | 425 | 311 |
| LV | 4 | 13 | 309 | 434 |
| BUF | 13 | 4 | 525 | 368 |
| MIA | 8 | 9 | 345 | 364 |
| NYJ | 5 | 12 | 338 | 404 |
| NE | 4 | 13 | 289 | 417 |
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.int("wins", { label: "W" }),
c.int("losses", { label: "L" }),
c.int("pf", { label: "PF" }),
c.int("pa", { label: "PA" }),
])
.title("AFC, 2024")
.build();
await renderHTMLAsync(spec, STANDINGS);
Tags: kind · int. All sdvtables examples.