{"id":17123554,"url":"https://github.com/ekenes/elections","last_synced_at":"2025-10-12T03:30:31.428Z","repository":{"id":100620220,"uuid":"307431642","full_name":"ekenes/elections","owner":"ekenes","description":"Time-series visualization of electoral swing/shift in the U.S presidential elections 2000-2020.","archived":false,"fork":false,"pushed_at":"2025-01-03T23:11:16.000Z","size":1401,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-03T21:14:58.833Z","etag":null,"topics":["data-visualization","elections","party","voting"],"latest_commit_sha":null,"homepage":"https://ekenes.github.io/elections","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ekenes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-26T16:14:13.000Z","updated_at":"2025-01-03T23:11:19.000Z","dependencies_parsed_at":"2025-01-29T09:32:32.802Z","dependency_job_id":null,"html_url":"https://github.com/ekenes/elections","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ekenes/elections","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekenes%2Felections","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekenes%2Felections/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekenes%2Felections/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekenes%2Felections/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ekenes","download_url":"https://codeload.github.com/ekenes/elections/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ekenes%2Felections/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010148,"owners_count":26084692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-visualization","elections","party","voting"],"created_at":"2024-10-14T18:26:30.938Z","updated_at":"2025-10-12T03:30:30.873Z","avatar_url":"https://github.com/ekenes.png","language":"TypeScript","readme":"# Electoral swing: U.S. presidential elections 2000-2024\n\n[This map](https://ekenes.github.io/elections/) uses composite symbols to visualize voting behaviors in the 2016 U.S. presidential election.\n\n![results-map](https://ekenes.github.io/elections/assets/results-map.png)\n\nAnd how they changed from the 2012 election.\n\n![change-map](https://ekenes.github.io/elections/assets/change-map.png)\n\nEach symbol consists of three circles offset from one another, each colored based on the party it represents.\n\n![symbol-overview](https://ekenes.github.io/elections/assets/party-colors.png)\n\nIn the visualization showing final voting results, each circle is sized based on the number of votes cast per party.\n\n![example-total](https://ekenes.github.io/elections/assets/example-total.png)\n\nIn the visualization showing the **change** in voting patterns between two elections, the size of the circle indicates\nthe absolute change in total votes.\n\nA filled circle indicates the party gained votes, and a hollow circle indicates the party\nlost votes. The following example shows the change in voting between the 2012 and 2016 presidential elections\nin Utah County, Utah.\n\n![example-change](https://ekenes.github.io/elections/assets/example-change.png)\n\nClick or tap a symbol to view more details about the shift in voting between the two elections.\n\n![popup](https://ekenes.github.io/elections/assets/popup.png)\n\n## Configuration\n\nYou can use this app to visualize the results and voting changes between two other elections.\nThe most important requirement for replicating this visualization is to follow a similar schema\nin the data. To transition smoothly to other datasets, the layer should have fields containing the\ntotal votes for each party for two elections.\n\nOnce the data is in the right format, follow the steps below.\n\n1. Fork this repo.\n1. Open the [config](https://github.com/ekenes/elections/blob/master/app/config.ts) file to change the data sources\nand other information, such as [years](https://github.com/ekenes/elections/blob/master/app/config.ts#L10) and [candidate](https://github.com/ekenes/elections/blob/master/app/config.ts#L15) names.\n1. Update the references to [field names](https://github.com/ekenes/elections/blob/master/app/config.ts#L30) to match those of the new data sources.\n1. You can configure the color and sizes of each symbol layer as well.\n1. Some aspects of the map may not look as good, such as the label placements, so you may need\nto update other parts of the app to improve the visual.\n1. The legend contains custom images. You may choose to modify the text and replace the images.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekenes%2Felections","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekenes%2Felections","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekenes%2Felections/lists"}