dnoenickx / boston-votes Goto Github PK
View Code? Open in Web Editor NEWAn portal for easily exploring the results of Boston municipal election
Home Page: https://dnoenickx.github.io/boston-votes/
An portal for easily exploring the results of Boston municipal election
Home Page: https://dnoenickx.github.io/boston-votes/
Gotta know if people are visiting my site
In the week or two following and election (especially the day of!) I'll want to be able to update results without a GitHub pages deploy. I'm thinking that results can be put in Firebase with the same json format as all other files. Then I can run a script to update firebase with scraped data from Boston Open Election Results Portal and/or unofficial results from the city.
Thoughts:
Hovering over a precinct should show a popup that shows the precinct specific results
Default to the first election, since it's the most recent.
Default to the first race, since, in general, it'll be mayor or at large anyway.
If you want to flip though the races in an election, you have to open the select menu and select the next one.
Might be easier to just have a button you can click to jump to the next item in the list
When someone selects a district election, the map should zoom/pan to that district
Boston's got some big parks, cemeteries, industrial areas, a big pond, and a big airport. It's funny having dots in those places. It also makes those districts seem sparsely populated.
p.s. I could get open space data, but after trying it I think it's kind of annoying... because there are other non-open-space areas that I don't want dots in (e.g. airport, castle island)... and the open space polygons leave out roads between them, and I don't want to put dots on Walk Hill Street, for example.
idk what I'm doing.
There some sort of caching going on, but... idrk what's going on. May be an issue if I change one of those cached files. Need to set some sort of expiration?
Also, have a better name for the cache than my-cache
Back End
Determine incumbent by looking at last election's winner. Add that to the race summary JSON.
Front End
The results panel (and any future popups) should indicate which candidate is the incumbent with an asterisk*
I think everything is scraped correctly, but it's worth it to site my sources
To reproduce:
You'll get this in the console:
Uncaught TypeError: Cannot read properties of undefined (reading 'geometry') at HTMLSelectElement.electionDidChange (index.js:134:77)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.