plot = ({
width:600,
mark:{
type:"line",
interpolate:"monotone"
},
data:{
values:weather
},
transform:[
{calculate:`(datum.main.temp-273.15)*9/5+32`,as:"y"},
{calculate:`date(datum.local)`,as:"date"}
],
encoding:{
x:{field:"local",type:"temporal"},
y:{field:"y",type:"quantitative"},
color:{field:"date",type:"nominal"}
}
})