vl.markBar()
.data(seattleWeatherTyped)
.title("Histogram of Daily Max Temperatures (2012-2015)")
.encode(
vl.x().fieldQ('temp_max').bin(true),
vl.y().aggregate('count'),
vl.color().scale({
range: ["#e7ba52","#c7c7c7","#aec7e8", "#1f77b4","#9467bd"]}).fieldN('weather'),
vl.column().fieldN('weather')
)
.width(150)
.height(200)
.render();