Public
Edited
Jun 5, 2023
1 fork
1 star
Insert cell
Insert cell
Plot.plot({
y: {grid: true, label: "Daily close ($)"},
marks: [
Plot.areaY(aaplMissing, {filter: (d) => !isNaN(d.Close), x: "Date", y1: "Close", fill: "#ccc"}),
Plot.areaY(aaplMissing, {x: "Date", y1: "Close", fill: "steelblue"}),
Plot.ruleY([0]),
]
})
Insert cell
aaplMissing = aapl.map(d => ({...d, Close: d.Date.getUTCMonth() < 3 ? NaN : d.Close})) // simulate gaps
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