Public
Edited
Apr 25, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
regioni_json = FileAttachment("regioni.json").json()
Insert cell
regioni_geo = topojson.feature(
regioni_json,
regioni_json.objects.Reg01012023_WGS84
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
query_lista_missioni = `
SELECT distinct missione
FROM
localizzazioni
order by missione
`
Insert cell
Insert cell
Insert cell
import { addTooltips } from "@mkfreeman/plot-tooltip"
Insert cell
locale = await d3.json(
"https://cdn.jsdelivr.net/npm/d3-format@3/locale/it-IT.json"
)
Insert cell
d3.formatDefaultLocale(locale)
Insert cell
itavalue = d3.formatDefaultLocale(locale).format(",.0f")
Insert cell
import { aq, op } from "@uwdata/arquero"
Insert cell
Insert cell
array = [5, , 3]
Insert cell
array.map((d) => {
if (isNaN(d)) {
return 0; // se il numero è pari, restituisci il numero stesso
} else {
return d; // se il numero è dispari, restituisci il doppio
}
})
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more