map = bertin.draw({
params: {
projection: d3.geoInterruptedMollweideHemispheres(),
clip: true
},
layers: [
{
type: "bubble",
geojson: data,
k: k,
leg_round: 0,
values: "pop",
leg_x: 100,
leg_y: 300,
leg_divisor: 1000000,
leg_title: "Population (million inh.)",
tooltip: {
fields: ["$name", "", "Continent", "$region", "Population", "$pop"],
fontSize: [25, 10, 14, 12, 14, 12],
fontWeight: ["bold", "normal", "bold", "normal", "bold", "normal"]
},
fill: {
type: "typo",
values: "region",
leg_title: `The
Continents`,
leg_x: 100,
leg_y: 100
}
},
{
type: "layer",
geojson: geom,
fillOpacity: 0.35,
fill: "white",
stroke: "none"
},
{ type: "graticule" },
{ type: "outline" }
]
})