Published
Edited
Dec 13, 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
map = {
create SVG artboard
const svg = d3.create("svg").attr("width", width).attr("height", height);

//determine which two data keys from the census we should show
const visualizationKeys =
vizTopic == "beforecovid vs aftercovid"
? ["", ""]
: ["", ""];

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
differenceYScale = d3
.scaleLinear()
.domain([-1, 1])
.range([chartHeight - margin, margin])
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

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