bertin.draw({
params: { projection: "InterruptedSinusoidal" },
layers: [
{ type: "header", text: "La population mondiale" },
{ type: "footer", text: "Fait avec bertin.js", anchor: "middle" },
{
type: "bubble",
geojson: world,
values: "pop",
fill: "#b566ac",
stroke: "white",
strokeWidth: 0.5,
tooltip: ["$name", "$pop"],
leg_x: 100,
leg_y: 250,
leg_title: "Population des\npays en 2000",
leg_round: -3
},
{
geojson: world,
fill: "white",
stroke: "none",
fillOpacity: 0.5
},
{ type: "graticule" },
{ type: "outline" }
]
})