Choroplethi = Plot.plot({
projection: projectioni,
marks: [
Plot.geo(polygonsi, {
stroke: "white",
fill: (d) => Age_fill.get(d.properties.gen),
title: (d) =>
`${d.properties.gen} ${format(Age_2021M.get(d.properties.gen))}`
}),
Plot.geo(polygonsi, { strokeWidth: 0.05 }),
Plot.geo(polygonsi, { stroke: "#fff", strokeWidth: .5 })
],
color: {
scheme: "Blues",
type: "quantile",
label: "Average Age by region",
legend: true,
domain: [40, 50]
}
})