plot = {
const countryFilter = vl
.selectSingle("Country")
.options(group_data.map(d => d[0]))
.init({ "Country": "All" })
.bind(vl.data('group_data').select('0'));
const plotLayer = vl
.markLine()
.encode(
vl.x().fieldT('TIME'),
vl.y().fieldQ('Value'),
vl.color().fieldN('LOCATION'),
)
.transform(
vl.filter(
vl.or(
vl.equal(countryFilter, "All"),
vl.equal(vl.field("0"), countryFilter)
)
)
);
vl
.data(group_data)
.layer(plotLayer)
.select(countryFilter)
.render();
}