Plot.plot({
projection: {type: "orthographic", rotate: [-longitude, -30]},
r: {
type: "linear",
range: [0, 7]
},
title:`Human Development Index (value) distribution in ${yearMap}`,
margin: 20,
marks: [
Plot.geo(land, {fill: "currentColor", fillOpacity: 0.2}),
Plot.sphere(),
Plot.dot(dataWithLatLong, {
filter: (d) => d.year == yearMap,
x: "longitude",
y: "latitude",
r: "HDI",
fillOpacity: 0.5,
stroke: "region",
fill: "region",
tip:true
})
]
})