Plot.plot({
x: {
transform: (d) => d3.utcYear.offset(d, 2000 - d.getUTCFullYear()),
tickFormat: "%b",
line: true
},
y: { nice: true, grid: true, zero: true, label: "↑ ice extent" },
marks: [
Plot.line(data, {
x: "date",
y: "extent",
stroke: ({ date }) => date.getUTCFullYear()
})
]
})