Comments (5)
👍 (I've been meaning to get around to this)
from usa-election-map.
@jacksonjude: sorry, I feel like this issue was rude . . . I didn't offer any detail about my request. Apologies for that.
You've made an awesome product. I'm a fan of the YouTube channel Let's Talk Elections, and he plugged your map in a recent video.
I'm curious if open source contributions would be welcome for any of the TODO list items etc. I also wonder about the instructions for getting a fork running locally.
from usa-election-map.
No worries! A README is definitely something that I should've added earlier. TODO list items are definitely open for anyone to recommend, just open an issue and I'll mark it as "feature".
Running a fork locally is really simple since this code only uses the base HTML/CSS/JS stack (+JQuery, which I have included locally anyways). Just clone the repo and open index.html to run!
There is a caveat here since Chrome (and Safari) are very stingy about loading local svg files due to CORS restrictions. Fixing this CORS issue on Safari is somewhat simple (goto Develop > Disable Cross-Origin Restrictions). Chrome is a little more complicated (you can try running "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --user-data-dir=~/chromeTemp
on Windows or open -a <chrome executable path> --args --disable-web-security --user-data-dir
on Mac). Alternatively, you can try running it on Firefox.
I will update the README with this information since I'm realizing that this is a more complex issue than I first thought :)
from usa-election-map.
I cloned and did notice the CORS issue in Chrome. On my Mac, one solution was as simple as running a local server in the repo:
brew install http-server
http-server
from usa-election-map.
That does make sense since the CORS error happens because of the "file://" protocol, and the local server changes the protocol to "localhost". I'll add that solution to the README.
from usa-election-map.
Related Issues (20)
- Presidential primary elections
- Presidential Elections before 1856 & Split Electoral Vote support
- Custom house maps
- House per-state popular vote totals
- Specific margin shifting
- Voteshares in custom maps
- 1976-1998 House Maps
- 2022 Predictions
- Custom map multiple dates
- Custom map selector
- Custom SVGs
- Custom map saving/sharing
- More custom map parties
- 1996 SD Results not working HOT 1
- *SUGGESTION* Option for the Territories for Custom maps. HOT 1
- County editing
- move 2022 election data into the "past elections" section
- Custom map flip states
- (suggestion) Add Direct Vote Amounts for Each State
- Add county maps for elections older than 2000
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usa-election-map.