Platform
Resources
Pricing
Sign in
Get started
Philip Nelson
public servant data scientist (work and opinions here are my own)
Workspace
Fork
Published
By
Philip Nelson
Edited
Oct 31, 2020
MIT
Fork of
NC Election Map
1 star
4
Insert cell
Insert cell
Insert cell
results
=
countyElectionResults
.
filter
(
obj
=>
{
obj
.
combined_fips
=
obj
.
combined_fips
.
substring
(
2
)
obj
.
votes_dem
=
parseInt
(
obj
.
votes_dem
)
obj
.
votes_gop
=
parseInt
(
obj
.
votes_gop
)
return
obj
.
state_abbr
==
"NC"
}
)
Insert cell
import
{
vl
}
from
"@vega/vega-lite-api"
Insert cell
import
{
electiondata
,
northcarolina
}
from
'@philipnelson/nc-election-map'
Insert cell
import
{
countyElectionResults
}
from
'@codingwithfire/where-are-votes-at-risk'
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
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
results
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
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML