bertin.draw({
params: { projection: d3.geoBromley() },
layers: [
{
type: "bubble",
geojson: bop,
values: "bop_2020",
k: k,
fill: {
type: "split",
values: "bop_2020",
colors: ["#F25842", "#4a7cd9"],
split: 0,
leg_x: 100,
leg_y: 300
},
tooltip: ["$name", "$bop_2020"],
leg_round: 0,
leg_x: 100,
leg_y: 170,
leg_round: -1,
leg_title: "Balance of payment,\n(in billion $ in 2020)"
},
{
type: "missing",
geojson: bop,
values: "bop_2020"
},
{
type: "layer",
geojson: countries,
fill: "#f5d482"
},
{ type: "graticule" },
{ type: "outline" }
]
})