Published
Edited
Nov 6, 2020
1 star
Insert cell
Insert cell
Insert cell
Insert cell
annotate = [
{key: 'HD 23', location: 'Great Falls', note: 'Perry lost re-election bid.'},
{key: 'HD 28', location: 'Havre', note: 'Open seat. Bachmeier declined to run for re-election.'},
{key: 'HD 26', location: 'Great Falls', note: 'Open seat. Schreiner faced term limits, ran for Lt. Gov.'},
{key: 'HD 96', location: 'Missoula', note: 'Open seat. Winter ran for U.S. House.'},
{key: 'HD 50', location: 'Billings', note: 'Bahr lost re-election bid.'},
{key: 'HD 25', location: 'Great Falls', note: 'Krotkov lost re-election bid.'},
{key: 'HD 24', location: 'Great Falls', note: 'Bessette lost re-election bid.'},
{key: 'HD 78', location: 'Deer Lodge', note: 'Open seat. Pierson faced term limits.'},
{key: 'SD 26', location: 'Billings', note: 'MacDonald lost re-election bid.'},
{key: 'HD 3', location: 'Hungry Horse', note: 'Open seat. Perry resigned to enroll in grad school.'},
]
Insert cell
partyColors = ({
'R': '#d73027',
'D': '#4575b4',
})
Insert cell
numFormat = d3.format(',.0f')
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more