Unlisted
Edited
Apr 26, 2023
1 fork
1 star
Insert cell
Insert cell
Insert cell
Plot.plot({
y: {
grid: true,
label: `↑ Temperature (°C)`,
transform: (f) => (f - 32) * (5 / 9) // convert Fahrenheit to Celsius
},
marks: [
Plot.ruleY([32]), // 32°F
Plot.lineY(sftemp, Plot.windowY(7, {x: "date", y: "high"}))
]
})
Insert cell
sftemp = FileAttachment("sf-temperatures.csv").csv({typed: true})
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