{
const points = vl
.markPoint({ size: 2, tooltip: true, dx: 50 })
.encode(vl.color().fieldN("key"), vl.detail().fieldT(referenceDate));
return vl
.layer(points)
.encode(
vl
.x()
.fieldQ("value")
.title("Días desde la notificación hasta la publicación")
.axis({
tickCount: 100,
labelExpr:
"datum.value%7 === 0 ? floor(datum.value/7) + ' sems ' : ''",
gridDash: {
condition: {
test: "+datum.value % 7 == 0",
value: []
},
value: [0, 20]
},
tickSize: 0
}),
vl
.y()
.fieldO("id_de_caso")
.axis(false)
)
.data(fechas)
.width(width * .8)
.height(600)
.title("Tiempo medio de espera para procesar pruebas PCR")
.render();
}