{
const temporalCirclePlot = vl.markCircle()
.title("Seattle Max Temperatures 2012 - 2015")
.encode(
vl.x().fieldT("date").timeUnit('monthdate').title('Date'),
vl.y().fieldQ('temp_max').title('Max Temp'),
vl.color().fieldN('weather')
.scale({
range: ["#aec7e8", "#c7c7c7", "#1f77b4","#9467bd", "#e7ba52"],
}),
vl.size().fieldQ('precipitation').scale({range:[5, 350]})
);
const weatherFreqBarPlot = vl.markBar()
.encode(
vl.x().count(),
vl.y().fieldN('weather'),
vl.color().fieldN('weather')
.scale({
range: ["#aec7e8", "#c7c7c7", "#1f77b4","#9467bd", "#e7ba52"],
})
);
return vl.vconcat(temporalCirclePlot, weatherFreqBarPlot)
.data(seattleWeatherTyped)
.render();
}