Platform
Resources
Pricing
Sign in
Contact us
Kerry Rodden
Workspace
Fork
Published
Elections
By
Kerry Rodden
Edited
Feb 25, 2021
17 stars
Elections
Election 2020 County Vote Distribution within a State
2020 Presidential Election Time Series Anomalies
Montana 2020 Legislative Outcomes
Dot-density election maps with Webgl
Pennsylvania 2020 General Election Mail Ballot Requests Analysis
Election Night Results
2020 Presidential Election Time Series
US Electoral College Results 1900 - 2020
Facebook Advertising in the 2020 Presidential Election
US Presidential Election Results (1976 - 2020)
2020 Presidential Election in Chicago
Blue wave
Election 2020: How reliable are different results at different stages?
Election 2020 Vote–Time Correlation Cartogram
Election 2020 Vote Count Speed Cartogram
What’s the connection between these two election bar charts?
Spinning counties, November 2020
A Better Way to Visualize US Elections 2020 Results
US Elections 2020 Results - Deeper Look
US Election 2020
Indian Country Today #NativeVote2020
Indian Country Today #NativeVote2020
As votes are counted
Try to impeach this? Challenge accepted!
Early Voting Wait Times in Gwinnett County, Georgia
VOTE Logo
Donor Age Distribution of 2020 Contributions by Individuals: Trump vs. Sanders
2020: Where Donation $$ Emerge
Unique Individual Donors contributing to the 2020 Presidential Candidates
Contributions: Trump vs. Biden 2020
Changes to polling places
Electoral College Unit Shuffle
As votes come in, what would it take for the trailing candidate to win?
Electoral College Decision Tree
2004 - 2016 Presidential Margin of Victory per County
2020 State Probabilities by Election Model - Shaded Table
2020 Presidential Election Forecasts
Election Maps: 2016
Working With Election Data: EAVS
3a. Historical participation in early voting vs. Election Day voting
NC Election Map
South Carolina Early and Absentee Voting Data
Race Bar Chart utilities
NC Congressional Districts
Grid cartograms
Paths to the White House (Inferred)
US Elections 2018
How well does population density predict U.S. voting outcomes?
Precincts Reporting Challenge
(7)
US Election Convention Map
Election Data Tutorial
2020 Presidential Election Forecasts
2016 U.S. presidential election (PEPSI Remix)
2016 U.S. presidential election
Election Explorations
(17)
County Maps
(26)
USPS collection box changes
U.S. Geographic Data
U.S. County Visualization Ideas
Rejected Mail Ballots in North Carolina
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
diff
=
await
d3
.
text
(
`https://api.github.com/repos/iandees/usps-collection-boxes/compare/${
startCommit
}...${
endCommit
}`
,
{
headers
:
{
Accept
:
"application/vnd.github.v3.diff"
}
}
)
Insert cell
Insert cell
changes
=
diff
.
split
(
"\n"
)
.
filter
(
d
=>
d
.
startsWith
(
"+"
)
||
d
.
startsWith
(
"-"
)
)
.
map
(
d
=>
{
try
{
const
feature
=
JSON
.
parse
(
d
.
slice
(
1
)
)
;
feature
.
properties
.
status
=
d
.
slice
(
0
,
1
)
===
"-"
?
"removed"
:
"added"
;
return
feature
;
}
catch
(
e
)
{
return
null
;
}
}
)
.
filter
(
d
=>
d
)
Insert cell
Insert cell
grouped
=
d3
.
group
(
changes
,
d
=>
d
.
properties
.
ref
,
d
=>
d
.
properties
.
status
)
Insert cell
data
=
changes
.
filter
(
d
=>
grouped
.
get
(
d
.
properties
.
ref
)
.
size
===
1
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3
=
require
(
"d3@6"
)
Insert cell
import
{
table
}
from
"@tmcw/tables/2"
Insert cell
import
{
tweet
}
from
"@mbostock/tweet"
Insert cell
token
=
"pk.eyJ1Ijoia2Vycnlyb2RkZW4iLCJhIjoiY2tlYWJtNXdrMDNjazJybzdsdWR1MXQxNiJ9.201r3UVK3fORKawabrfkqw"
Insert cell
mapboxgl
=
{
const
gl
=
await
require
(
"mapbox-gl@1"
)
;
if
(
!
gl
.
accessToken
)
{
// https://www.mapbox.com/help/how-access-tokens-work/
gl
.
accessToken
=
token
;
const
href
=
await
require
.
resolve
(
"mapbox-gl@1/dist/mapbox-gl.css"
)
;
document
.
head
.
appendChild
(
html
`<link href=${
href
} rel=stylesheet>`
)
;
}
return
gl
;
}
Insert cell
lastChecked
=
new
Date
(
(
await
d3
.
text
(
"https://raw.githubusercontent.com/iandees/usps-collection-boxes/master/data/last_updated.txt"
)
)
.
trim
(
)
)
Insert cell
addedColor
=
"#3bb2d0"
Insert cell
removedColor
=
"#ff7f00"
Insert cell
inlineDot
=
color
=>
html
`<div style="display: inline-block; background: ${
color
};
border-radius: 50%; width: 12px; height: 12px;"></div>`
Insert cell
addressTable
=
(
features
,
properties
)
=>
table
(
features
.
map
(
d
=>
(
{
address
:
d
.
properties
[
"addr:full"
]
,
city
:
`${
d
.
properties
[
"addr:city"
]
}, ${
d
.
properties
[
"addr:state"
]
}`
,
zip
:
d
.
properties
[
"addr:postcode"
]
}
)
)
,
properties
)
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.
Try it for free
Learn more
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
map
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
startCommit
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
endCommit
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
diff
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
changes
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
grouped
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
token
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
mapboxgl
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
lastChecked
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
addedColor
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
removedColor
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
inlineDot
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
addressTable
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML