Plot.plot({
width: 1000,
height: 520,
projection: {
type: "equirectangular"
},
color: {
scheme: "Plasma",
background: "#ADD8E6",
legend: true,
label: "Plastic Waste Production Share %",
domain: [0, 20],
style: { fontSize: 13 }
},
marks: [
Plot.sphere({ fill: "#ADD8E6" }),
Plot.geo(countries, { fill: "#ccc", stroke: "#fff" }),
Plot.geo(countries, {
fill: (d) => d.properties["PlasticWasteShare"],
stroke: "#fff",
tip: true
})
]
})