{
let svg = viz.create({ projection: d3.geoNaturalEarth1(), width: 700 });
svg.plot({ type: "outline" });
svg.plot({
type: "graticule",
stroke: "white",
step: 20,
strokeDasharray: "none"
});
svg.plot({
type: "choro",
data: world,
missing: "#CCC",
leg_missing_text: "no data",
colors: "Temps",
var: "gdppc",
breaks: [200, 1000, 5000, 10000, 50000, 200000],
leg_values_round: 0,
reverse: true,
strokeWidth: 0.3,
leg_title: "GDP per capita",
tip: true
});
return svg.render();
}