{
let svg = viz.create({ projection: d3.geoNaturalEarth1(), zoomable: true });
svg.plot({ type: "outline" });
svg.plot({
type: "graticule",
stroke: "white",
step: 40,
strokeWidth: 2,
strokeOpacity: 0.3
});
svg.plot({ type: "path", datum: world, fill: "white", fillOpacity: 0.3 });
svg.plot({
type: "prop",
symbol: "square",
data: world,
var: "pop",
fill: "#4c86a6",
leg_type: "nested",
leg_values_factor: 1 / 1000000,
leg_pos: [100, 300],
leg_title: "Number of inhabitants",
leg_subtitle: "(in million)",
tip: true
});
return svg.render();
}