{
const svg = viz.create();
const data = nuovoGeoJson.features.map((d) => d.properties.Valore);
const choro = viz.tool.choro(data, {
method: "jenks",
nb: 5,
precision: 0,
colors: "PinkYl"
});
svg.path({ data: naz_rewind, fill: "#9b577d" });
svg.path({
data: nuovoGeoJson,
fill: (d) => choro.colorize(d.properties.Valore)
});
svg.legend.choro_horizontal({
pos: [400, 380],
...choro,
title: "Numero di persone"
});
return svg.render();
}