Plot.plot({
x: {
domain: [new Date("2000-10-01"), new Date("2001-04-30")],
transform: (d) => d3.utcDay.offset(d, ((d.getUTCMonth() >= 9 ? 2000 : 2001) - d.getUTCFullYear()) * 365.24),
tickFormat: "%b",
line: true
},
y: { nice: true, grid: true, zero: true },
marks: [
Plot.line(tidy_data, {
x: "date",
y: "accumulated_snowfall",
stroke: "season",
})
]
})