map2 = bertin.draw({
params: { width: 700 },
layers: [
{ type: "header", text: "Wealth around the world" },
{
id: "mychoro",
geojson: data,
fill: {
type: "choro",
values: "gdppc",
colors: "Reds",
leg_x: 20,
leg_y: 150,
leg_round: 0,
leg_title: "GDP per capita",
nbreaks: 4
}
},
{ type: "graticule" },
{ type: "outline" }
]
})