tmaxPlot = Plot.plot({
marks: [
Plot.line(filteredTemps, {
x: "year",
y: "value",
stroke: field == "tmax" ? "orangered" : "royalblue"
}),
Plot.dot(filteredTemps, {
x: "year",
y: "value",
fill: field == "tmax" ? "orangered" : "royalblue",
})
],
className: "testplot"
})