Published
Edited
Dec 12, 2021
Importers
Insert cell
# Covid-19 Sask region data
Insert cell
Insert cell
chart = StackedAreaChart(data.filter(d => d.Region != "Tot."), {
x: d => d.Date,
y: d => d.New_Cases,
z: d => d.Region,
yLabel: "↑ Daily Cases by region",
width,
height: 900
})
Insert cell
chart2 = StackedAreaChart2(data.filter(d => d.Region != "Tot."), {
x: d => d.Date,
y: d => d.New_Cases,
z: d => d.Region,
yLabel: "↑ Daily Cases Province Wide",
width,
height: 900
})
Insert cell
Insert cell
d3.group(data, d => d.Region)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
data2 = FileAttachment("cases(1)@1.csv").csv({typed: true})
Insert cell
popLookup = new Map(popu.map(d=>[d.HA, d.pop]))
Insert cell
Insert cell
Insert cell
Insert cell
import {Swatches} from "@d3/color-legend"
Insert cell
import {howto, altplot} from "@d3/example-components"
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