Public
Edited
Mar 5, 2023
Insert cell
Insert cell
response = (await fetch(`https://ical.jonasparnow.com/ical?name=Lara&start=1992-11-26&format=json`)).json()
Insert cell
dates = response.map(({ date, summary, values, description }) => ({ date: new Date(date), summary, values, description })).filter(({date}) => date < new Date('2100-01-01') && date > new Date('2020-01-01'))
Insert cell
Plot.plot({
marginLeft: 250,
width: 1500,
x: {
nice: true
},
marks: [
Plot.dot(dates, {x: "date", y: "description", fill: 'black', stroke: 'none', sort: {y: "x"}}),
Plot.ruleX([new 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