beergraph = {
let bg = vl.markCircle()
.width(600)
.height(600)
.encode(
vl.x().fieldQ("ibu"),
vl.y().fieldQ("abv"),
vl.color().value("black"),
vl.size().count().legend(false),
vl.opacity().value(.1)
)
.data(beers)
let sel = vl.markCircle()
.width(600)
.height(600)
.encode(
vl.x().fieldQ("ibu"),
vl.y().fieldQ("abv"),
vl.color().value("black"),
vl.size().count(),
vl.opacity().value(1),
vl.tooltip().count()
)
.data(beersWithFilter)
;
return vl.layer( bg , sel).render()
}