bertin.draw({
params: {
width: 600,
prjection: "d3.geoChamberlinAfrica()",
background: "#bde3ff"
},
layers: [
{
type: "bubble",
geojson: jointure_Af,
values: "co2" + annee,
fill: "#D46ECF",
leg_x: 27,
leg_y: 325,
leg_round: -1,
leg_title: "Emissions de CO²\n (en Kt)",
leg_txtcol: "000000",
fixmax: 800000,
tooltip: ["$name", "$co2" + annee]
},
{
geojson: jointure_Af,
fill: "#9bd382",
length: 300
},
{
type: "scalebar",
units: "kilometers",
leg_x: 100,
leg_y: 750
},
{
type: "header",
text: "Une hausse certaine des émissions\n de CO²",
fill: "000000"
},
{
type: "footer",
text: "source : Banque mondiale, 2022",
fill: "000000"
}
]
})