Published
Edited
Mar 17, 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
Insert cell
Insert cell
Insert cell
results2020numbers = d3.csvParse(await FileAttachment("Popular vote backend - Sheet1.csv").text())
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
md`
Important citations:

First, thanks to Eric Alexander for a ton of help on the project both in answering questions and writing some example code that as adapted. Also thanks to d3-graph-gallery.com, they were helpful in looking at sample code that influenced the final version of this project.`
Insert cell
mutable selectedState = "Florida";
Insert cell
pollsters = Array.from(new Set(presidentPolling.map(d => d.pollster)));
Insert cell
d3 = require('d3@v6')
Insert cell
import {Radio} from "@observablehq/inputs"
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