Public
Edited
Dec 31, 2022
Insert cell
Insert cell
attach = FileAttachment("SunriseSunset.csv").csv()
Insert cell
data = attach.map(d => ({...d, date: new Date(d.date), delta: +d.delta, duration: +d.duration}))
Insert cell
Plot.plot({
grid: true,
marks: [
Plot.line(data, {
x: "date",
y: "delta"
}),
Plot.ruleY([0])
]
})
Insert cell
Plot.plot({
grid: true,
marks: [
Plot.line(data, {
x: "date",
y: "duration"
}),
Plot.ruleY([0])
]
})
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