Public
Edited
Oct 13, 2024
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
canada = allWeeksCountries
.filter((d) => d.country_name == "Canada")
.reduce(countryReduce, {})
Insert cell
UnitedStates = allWeeksCountries
.filter((d) => d.country_name == "United States")
.reduce(countryReduce, {})
Insert cell
Insert cell
getRow = (data) => {
return htl.html`<td style="${
data.halloweeny ? "background-color: #FFAAAA" : ""
}">${data.title}</td>`;
}
Insert cell
allWeeksCountries
Insert cell
all-weeks-countries.csv
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