mark = vl.markGeoshape({stroke: '#aaa', strokeWidth: 0.25})
.data(queryResults.features)
.encode(
vl.tooltip([
{type: 'nominal', field: 'properties.NAME', title: "County"},
{type: 'quantitative', field: 'properties.CASES', title: 'Cases'},
{type: 'quantitative', field: 'properties.DEATHS', title: 'Deaths'},
]),
vl.color()
.fieldQ('properties.CASES')
.scale({scheme: "yelloworangered"})
.legend({title: "Cases"})
)
.project(vl.projection('albersUsa'))
.height(markHeight)
.width(markWidth - (markWidth * 0.1))
.autosize(
{
type: "fit",
contains: "padding",
resize: true
}
)
.render()