Skip to main content

NHL standings: grouped, striped, with a record tally and a points-% bar

NHL 2025-26
Atlantic DivisionFinal regular-season standings
TeamW-L-OTPtsPoints %
Top three: a playoff berth
1st50-23-9109
66.5
2nd50-26-6106
64.6
3rd48-24-10106
64.6
Wild-card race and out
4th45-27-10100
61.0
5th44-27-1199
60.4
6th41-31-1092
56.1
7th40-38-484
51.2
8th32-36-1478
47.6
Source: NHL api-web /v1/standings/now
import { NHL_STANDINGS } from "@sportsdataverse/examples/data";
import { defineTable } from "@sportsdataverse/sdvtables";
import { renderHTMLAsync } from "@sportsdataverse/sdvtables/html";

// The top three of each division qualify for the playoffs; everyone else is grouped below them.
const rows = NHL_STANDINGS.map((r) => ({
...r,
group: r.division_rank <= 3 ? "Top three: a playoff berth" : "Wild-card race and out",
points_pct: r.points / ((r.wins + r.losses + r.ot_losses) * 2),
}));
const spec = defineTable<(typeof rows)[number]>()
.columns((c) => [
c.rank("division_rank", { label: "" }),
c.logo("team", { league: "nhl", includeName: true, label: "Team" }),
c.tally(["wins", "losses", "ot_losses"], { label: "W-L-OT" }),
c.int("points", { label: "Pts" }),
c.percentileBar("points_pct", { label: "Points %", domain: [0, 100], decimals: 1 }),
])
.groupBy("group")
.groupStripes({ color: "#EEF3FA", start: 1 })
.titleHeader("Atlantic Division", { kicker: "NHL 2025-26", subtitle: "Final regular-season standings" })
.sourceNote("Source: NHL api-web /v1/standings/now")
.theme("swiss")
.build();
await renderHTMLAsync(spec, rows);

Tags: table · recipe · groupBy · groupStripes · percentileBar · tally · logo · nhl. All sdvtables examples.