Plot.plot({
title: "Sea surface temperatures have risen consistently since the 80s",
subtitle: "In black, yearly rolling mean. In gray, daily temperatures.",
marks: [
Plot.lineY(data, { x: "date", y: "temperature", stroke: "#CCC" }),
Plot.lineY(data, Plot.windowY(366, { x: "date", y: "temperature", tip: true }))
]
})