Plot.plot({
style: "overflow: visible;",
insetBottom: 30,
insetLeft: 20,
insetRight: 20,
marks: [
Plot.ruleX([1900], {stroke: "gray", opacity: 0.2}),
Plot.ruleX([2020], {stroke: "gray", opacity: 0.2}),
Plot.lineY(owidfiltered, {x: "year", y: "cumulative_luc_co2", stroke: "country", title: "country", opacity: 0.8, title: "year", opacity: 0.4}),
Plot.text(owidcountries.slice(0,6), {x: 2023, y: d => (d.cumulative_luc_co2), text: "country", fontSize: 15, fill: "country",textAnchor: "start",dx: 3}),
Plot.image(owidcountries.slice(0,6), {x: 2020, y: d => (d.cumulative_luc_co2), src: "flagurl", width: 30}),
Plot.text(['Brazil surpassed\nRussia\n2005'],{x:2003, y: 101000, fontSize: 20, fill: "darkblue"}),
Plot.text(['China surpassed\nIndia & Canada\n1988'],{x:1986, y: 45000, fontSize: 20, fill: "maroon"}),
Plot.text(owidcountries, {x: "year", y: 50, text: "yearchar", fontSize: 60, fill: "gray", opacity: 0.1, textAnchor: "start"}),
Plot.dotY({x:2004, y: 103000, fontSize: 20, r: 20}),
Plot.axisY({ tickSize: 0, fontSize: 15, label: "", anchor:"left", labelAnchor: "center"}),
Plot.axisX({ tickSize: 0, fontSize: 0, label: "", anchor: "bottom", labelAnchor: "center"}),
Plot.text([`Cumulative Land\nUse Change\nCO2`], {x:1900, y:110000, frameAnchor: "middle", fontSize: 50, lineWidth: 25, textAnchor: "start", lineHeight: 1.2, clip: false, fill: "gray", opacity: 0.3}),
],
color: {type: "categorical"},
height: 800,
width: 1000,
marginBottom: 50,
marginLeft: 75
})