Published
Edited
Aug 28, 2021
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
vacc_85 = vl.markArea()
.data(vacc.filter(d => new Date(d.DATE) >= new Date("2020-12-27")))
.encode(
vl.x().fieldT("DATE").title(null),
vl.y().fieldQ("RATIO").title(null).axis({format: "%"}),
vl.color().fieldN("DOSE").scale({range: ["#edc948", "#59a14f"]}).legend({title:null, orient: "bottom"})
).width(500).title("Vaccinatiegraad 85+").render();
Insert cell
Insert cell
cutoff = d3.timeFormat("%Y-%m-%d")(d3.timeDay.offset(Date.parse(today), -3))
Insert cell
Insert cell
Insert cell
Insert cell
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