Published
Edited
Oct 31, 2020
1 star
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.
Learn more