Plot.plot({
caption:
"Disability-Adjusted Life Years are computed by multiplying the estimated number of people in the country with depression by an estimate for how bad depression is. Data from the Global Burden of Disease Study (2019).",
projection: "equal-earth",
width,
color: {
legend: true,
label: "Disability-Adjusted Life Years (Estimated)",
scheme: "magma",
unknown: "white"
},
marks: [
Plot.geo(gbdGeo, {
fill: (d) => d.properties["DALYs"],
stroke: "currentColor",
strokeWidth: 0.5
}),
Plot.sphere(),
Plot.tip(
gbdGeo.features,
Plot.pointer(
Plot.centroid({
channels: {
Country: (d) => d.properties["Name"],
"Depression Burden": (d) => d.properties["DALYs"] ?? "No data"
}
})
)
)
]
})