Unlisted
Edited
May 31, 2023
2 stars
Insert cell
Insert cell
aapl = FileAttachment("aapl.csv").csv({typed: true})
Insert cell
d3.group(aapl, d => d3.utcYear(d.Date))
Insert cell
d3.rollup(
aapl,
values => {
const start = values[0].Open;
const end = values[values.length - 1].Close;
return (end - start) / start;
},
d => d3.utcYear(d.Date)
)
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