crimeplots = {
const crimesbytype = vl.markBar().title("Number of Crimes by Type")
.data(crimes).encode(
vl.x().fieldN('Primary Type').title('Primary Type'),
vl.y().count().title(null), vl.color().fieldN('Primary Type')
).width(width*0.4 - 20).height(200);
const crimesbyday = vl.markLine().title("Number of Crimes by Day")
.data(crimes).encode(
vl.x().fieldT('Date').timeUnit("yearmonthdate").axis({
title: "Date (month-date)",
format: "%b %d",
formatType: "time"
}),
vl.y().count().title(null),vl.color().fieldN('Primary Type')
).width(width*0.4 - 20).height(150);
return vl.hconcat(map_view,vl.vconcat(crimesbytype,crimesbyday)).render();}