Published
Edited
Oct 25, 2021
Insert cell
Insert cell
viewof year = Inputs.range([1900,2020],{step:1})
Insert cell
Insert cell
Insert cell
phillies = batting
.filter(record => record.teamID == "PHI")
.filter(record => record.yearID <= year + 9)
.filter(record => record.yearID >= year)
Insert cell
d3.max(phillies,record => parseInt(record.HR))
Insert cell
d3.max(phillies,record => parseInt(record.SO))
Insert cell
Insert cell
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