Published
Edited
Oct 18, 2021
Insert cell
# Area
Insert cell
cov = d3.csvParse(await FileAttachment("covid19-data.csv").text(),d3.autoType)
Insert cell
cov1 = cov.filter(d => (!d.prname.includes("Canada")))
Insert cell
Plot.plot({
height: 600,
y: {
axis: null
},
fy: {
axis: "right",
label: null
},
facet: {
data: cov1,
y: "prname",
marginRight: 140
},
marks: [
Plot.areaY(cov1, {x: "date", y: "numdeaths", fillOpacity: 0.2}),
Plot.lineY(cov1, {x: "date", y: "numdeaths", strokeWidth: 1})
]
})
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