vl.markCircle({stroke: 'black', strokeWidth: 1, opacity: .75})
.data(simpleCereals)
.transform(
vl.calculate('datum.calories').as('Calories in Cereal'),
vl.calculate('datum.rating').as('Cereal Ratings'),
vl.calculate('datum.shelf').as('Shelf Location')
)
.encode(
vl.x().fieldQ('Calories in Cereal'),
vl.y().fieldQ('Cereal Ratings'),
vl.color().fieldN('Type'),
vl.size().fieldO('Shelf Location'),
)
.width(600)
.height(400)
.render()