Plot.plot({
width,
height: width / 2,
marks: [
Plot.ruleY([0]),
...data.map((d) =>
Plot.lineY(getMinuteInfo(d.solarNoon), {
x: "hour",
y: "altitudeDegrees",
strokeOpacity: 0.1
})
),
Plot.lineY(getMinuteInfo(date), {
x: "hour",
y: "altitudeDegrees",
stroke: "#01579b"
}),
Plot.dot([getSunInfo(date)], {
x: "hour",
y: "altitudeDegrees",
fill: "#01579b",
r: 5
})
]
})