Published
Edited
Nov 11, 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
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`#### Detalle`
Insert cell
Insert cell
Insert cell
d3.dsvFormat(";")

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
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
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
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
<svg height=2000>
Insert cell
Insert cell
getDatesForWeek(31)
Insert cell
function getDatesForWeek(week) {
return { from: dataSemanasEpidemiologicas[0][`2021${week}`], to: dataSemanasEpidemiologicas[1][`2021${week}`]}
}
Insert cell
Insert cell
import {style_bootstrap} from "@elaval/utils"
Insert cell
d3.formatDefaultLocale(es_ES)
Insert cell
es_ES = ({
"decimal": ",",
"thousands": ".",
"grouping": [3],
"currency": ["$", ""],
"dateTime": "%a %b %e %X %Y",
"date": "%d/%m/%Y",
"time": "%H:%M:%S",
"periods": ["AM", "PM"],
"days": ["Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
"shortDays": ["Dom", "Lun", "Mar", "Mi", "Jue", "Vie", "Sab"],
"months": ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"],
"shortMonths": ["Ene", "Feb", "Mar", "Abr", "May", "Jun", "Jul", "Ago", "Sep", "Oct", "Nov", "Dic"]
});
Insert cell
momentLocaleConfig = {
updateMomentLocale()
}
Insert cell
function updateMomentLocale() {
moment.locale('es'); // 'en'
moment.updateLocale('es', {
weekdays : [
"Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"
]
});
moment.updateLocale('es', {
months : [
"Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio",
"Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
]
});
moment.updateLocale('es', {
monthsShort : [
"Ene", "Feb", "Mar", "Abr", "May", "Jun",
"Jul", "Ago", "Sep", "Oct", "Nov", "Dic"
]
});
moment.updateLocale('es', {
weekdaysShort : ["Dom", "Lun", "Mar", "Mie", "Jue", "Vie", "Sab"]
});
}
Insert cell
moment = require("moment")
Insert cell
_ = require("lodash")
Insert cell
d3 = require("d3")
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