bertin.draw({
params: { projection: "Bertin1953"},
layers: [
{
type: "bubble",
geojson: pl_country_freq_geom,
values: metric_bubble_size,
k: k,
dorling: false,
fill: "#D98324",
tooltip: {
fields:
["$country", "$n_players", "players", "$n_matches_played", "matches played"],
fontStyle: ["bold", "normal", "italic", "normal", "italic"],
fill: "#fefefe",
fillOpacity: 0.6
},
leg_round: 0,
leg_x: 700,
leg_y: 400,
leg_round: -1,
leg_title: "Number of\nPremier League players\nfrom country"
},
{
type: "layer",
geojson: world,
fill: "white",
fillOpacity: 0.3
},
{
type: "layer",
geojson: pl_country_freq_geom,
fill: "#230007",
fillOpacity: 0.2
},
{ type: "graticule" },
{ type: "outline" }
]
})