Public
Edited
May 18
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Add a season parameter to filter games from a specific season
// Example seasons might be "2021-22", "2022-23", etc.
seasonToFilter = "2021-22" // Change this to your desired season
Insert cell
// Filter the data to include only games where Churchill appears
// as either winning team or losing team AND from the specified season
churchillGames = data
.filter((d) => d.myTeam === "Churchill")
.filter((d) => d.season === seasonToFilter)
Insert cell
// Sort by seasonGameNumber to ensure proper order
churchillGames.sort(
(a, b) => Number(a.seasonGameNumber) - Number(b.seasonGameNumber)
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more