Plot.plot({
title:'Top 10 Countries with Highest CO2 Emissions before and during the pandemic)',
width: 1000,
marks: [
Plot.ruleY([0]),
Plot.barY(most_european_total_co2_country_data.filter(d => d.year > 2018 && d.year <= 2020), {
x: "year",
y: "co2",
fx: "country",
stroke: "population",
fill: "population",
labels:{"year": "CO2 Emissions (tons)"},
sort: {x: "x", fx: "-y"}}),
]
})