vl.markBar()
.data(data_2022)
.encode(
vl.x().fieldO('country').title('Country'),
vl.y().fieldQ('forestArea').title('% Forest Area').scale({domain: [0,100]}),
vl.color().fieldN('country').title('Country'),
vl.tooltip(['country', 'year', 'forestArea'])
)
.title("Forest Area (%) of Country's Land Area in 2022")
.height(400)
.width(900)
.render()