{
let svg = viz.create({
projection: d3.geoNaturalEarth1(),
zoomable: true
});
svg.outline();
svg.graticule({ stroke: "white", step: 40 });
svg.path({ datum: world, fill: "white", fillOpacity: 0.5 });
svg.plot({
type: "propchoro",
symbol: "square",
data: world,
var1: "pop",
var2: "gdppc",
colors: "YlOrRd",
leg1_pos: [20, 320],
leg1_title: "Population",
leg1_subtitle: "(en millions)",
leg1_values_factor: 1 / 1000000,
leg1_values_round: 0,
leg2_title: "PIB par habitant",
leg2_values_round: 0,
leg2_type: "horizontal",
missing: false
});
return svg.render();
}