{"id":18647260,"url":"https://github.com/ttitcombe/constituencymap-d3","last_synced_at":"2026-04-18T12:03:11.495Z","repository":{"id":115039761,"uuid":"250356379","full_name":"TTitcombe/ConstituencyMap-d3","owner":"TTitcombe","description":"A map of UK parliamentary constituencies created in D3","archived":false,"fork":false,"pushed_at":"2020-03-28T12:32:35.000Z","size":438,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T12:11:36.844Z","etag":null,"topics":["choropleth","choropleth-map","d3","d3-js","d3js","election","election-data","map","political-science","politics","uk","united-kingdom"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TTitcombe.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-03-26T19:46:36.000Z","updated_at":"2020-03-28T12:32:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"1f3cc624-155e-47b9-9b41-e3176a7bec37","html_url":"https://github.com/TTitcombe/ConstituencyMap-d3","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FConstituencyMap-d3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FConstituencyMap-d3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FConstituencyMap-d3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TTitcombe%2FConstituencyMap-d3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TTitcombe","download_url":"https://codeload.github.com/TTitcombe/ConstituencyMap-d3/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449585,"owners_count":19640535,"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","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":["choropleth","choropleth-map","d3","d3-js","d3js","election","election-data","map","political-science","politics","uk","united-kingdom"],"created_at":"2024-11-07T06:25:22.985Z","updated_at":"2025-11-05T06:30:28.625Z","avatar_url":"https://github.com/TTitcombe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConstituencyMap\nA map of UK parliamentary constituencies created in D3\n\n![UK parliamentary constituencies, coloured by elected party](./assets/map.png)\n\n## How to run\n1. Clone this repository\n2. Navigate to the [`map`](./map) directory in the repository and run a server. This can be done by:\n    - Using a plugin on a JavaScript IDE\n    - Run `python -m http.server` in the terminal\n3. Navigate in a browser to the localhost which contains the application\n\n## TODO\n- [x] Offset constituency circles on alternate rows\n- [x] Fit map to SVG size\n    - [ ] Do this dynamically (without hard-coded numbers)\n- [x] Combine map data with 2019 parliamentary results (pre-JS/d3)\n    - [ ] Do this step in D3\n- [ ] Fill in missing constituencies in hexmap\n- [x] Colour circles by party\n- [ ] Add legend\n- [ ] Use hexagons instead of circles\n- [ ] Make constituencies interactive\n\n## Data\n- `uk_hex.csv`\n    - Coordinates of UK parliamentary constituencies (2017 boundaries) in hexmap format\n    - Created by [ODILeeds](https://odileeds.org/projects/hexmaps/constituencies/),\n    released under MIT license\n- `HoC-ge2019.csv`\n    - Results of the 2019 UK General Election\n    - Provided by [HoC library](https://commonslibrary.parliament.uk/research-briefings/cbp-8749/)\n- `combined_ge2019.csv`\n    - Merged `uk_hex.csv` and `HoC-ge2019.csv`\n    - Removed some unused fields, such as individual part votes, from combined dataset\n    - **Note**: Not all constituencies are present in both files.\n    I believe this is because the ODI map uses the old (2017) boundaries.\n    The hexmap will need to be updated.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttitcombe%2Fconstituencymap-d3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fttitcombe%2Fconstituencymap-d3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fttitcombe%2Fconstituencymap-d3/lists"}