{
const interval = vl.selectInterval()
const hist = vl.markBar()
.data(vl.topojson(seattleCensusTracts2020).feature('collection'))
.encode(
vl.x().fieldQ('properties.F2020_PL_data_TOT_POP').bin({step:200}),
vl.y().aggregate('count')
)
.width(500).height(600);
const map = vl.markGeoshape()
.data(vl.topojson(seattleCensusTracts2020).feature('collection'))
.params(interval)
.project(vl.projection('mercator').reflectY(true))
.encode(
vl.color().fieldQ('properties.F2020_PL_data_TOT_POP').legend({columns:3, title: "Seattle Census", symbolLimit: 100}),
vl.opacity().if(interval, vl.value(1)).value(0.1)
)
.width(500).height(600)
return vl.hconcat(hist, map).render()
}