Published
Edited
Apr 4, 2021
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
fechaInicio = "2020-01-01"
Insert cell
dataLoaded = d3.csvParse(await FileAttachment("Población 2020 (2).csv").text(), d3.autoType);

Insert cell
dataLoadedRelativa = dataLoaded.map(d=>{
return {
Provincia : d.Provincia,
"Grupo quinquenal" : d["Grupo quinquenal"],
total : d.total/totalesProvincia.filter(e=>e.Provincia == d.Provincia)[0].Total
}})
Insert cell
Insert cell
Insert cell
Insert cell
import { movingAverage } from "@d3/moving-average"
Insert cell
d3 = require("d3@5", "d3-array@2")
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