{
const barColor = vl.param('bar_color').value('blue').bind(vl. menu(['green', 'yellow','purple', 'orange']).name('Color for Histogram'));
const barRadius = vl.param('bar_radius').value(10).bind(vl.slider(0,20,1));
return vl.markBar({color: {expr: 'bar_color'}, opacity: 0.6, cornerRadius: {expr: 'bar_radius'}})
.data(seattleWeatherTyped)
.params(barColor, barRadius)
.title("Histogram of Daily Max Temperatures in Seattle (2012-2015)")
.encode(
vl.x().fieldQ('temp_max').bin(true),
vl.y().aggregate("count")
)
.render()
}