{"id":13481422,"url":"https://github.com/yaph/d3-geomap","last_synced_at":"2025-05-16T15:06:49.795Z","repository":{"id":16051541,"uuid":"18795587","full_name":"yaph/d3-geomap","owner":"yaph","description":"A library for creating geographical maps based on D3.js","archived":false,"fork":false,"pushed_at":"2024-10-22T18:28:56.000Z","size":7515,"stargazers_count":132,"open_issues_count":5,"forks_count":45,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-04-12T14:17:00.632Z","etag":null,"topics":["choropleth","choropleth-map","d3","d3-geomap","d3-plugin","d3js","geo","geography","hacktoberfest","javascript","map","mapping","npm-package","svg","visualization"],"latest_commit_sha":null,"homepage":"https://d3-geomap.github.io/","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/yaph.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","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},"funding":{"custom":"https://www.paypal.me/rgmz","github":"yaph"}},"created_at":"2014-04-15T10:05:57.000Z","updated_at":"2025-02-05T08:29:41.000Z","dependencies_parsed_at":"2024-06-21T02:36:26.830Z","dependency_job_id":"b785a6eb-a51a-4510-bd54-6e95d7497d86","html_url":"https://github.com/yaph/d3-geomap","commit_stats":{"total_commits":197,"total_committers":4,"mean_commits":49.25,"dds":"0.055837563451776595","last_synced_commit":"f7598208cba92408b80d2df0ef193bcf5dfac57c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fd3-geomap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fd3-geomap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fd3-geomap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yaph%2Fd3-geomap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yaph","download_url":"https://codeload.github.com/yaph/d3-geomap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253989865,"owners_count":21995766,"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-geomap","d3-plugin","d3js","geo","geography","hacktoberfest","javascript","map","mapping","npm-package","svg","visualization"],"created_at":"2024-07-31T17:00:51.698Z","updated_at":"2025-05-16T15:06:49.774Z","avatar_url":"https://github.com/yaph.png","language":"JavaScript","funding_links":["https://www.paypal.me/rgmz","https://github.com/sponsors/yaph"],"categories":["Maps"],"sub_categories":[],"readme":"# d3-geomap\n\n![npm package version](https://img.shields.io/npm/v/d3-geomap.svg)\n![npm package license](https://img.shields.io/npm/l/d3-geomap.svg)\n\n**d3-geomap** is designed to be a [reusable](https://bost.ocks.org/mike/chart/) geographic map for D3.\nIn its current stage it consists of a class to create plain maps `d3.geomap()` and one for choropleth maps `d3.choropleth()`.\n\nRefer to the [documentation on how to use d3-geomap](https://d3-geomap.github.io/) and to download a bundle that\ncontains minified versions of d3-geomap and its dependencies as well as TopoJSON files for creating world and\nindividual country maps.\n\n## Install\n```sh\n$ npm install d3-geomap\n```\n\n## Usage\nES6:\n```js\nimport { select } from 'd3-selection';\nimport { geomap } from 'd3-geomap';\n\nconst worldMap = geomap();\nworldMap.geofile('./node_modules/d3-geomap/src/world/countries.json');\n\nworldMap.draw(select('#map'));\n```\n\nOtherwise, see examples in the `/examples` directory.\n\n## Develop\n\nClone the repo \u0026 install dependencies:\n```sh\n$ git clone https://github.com/yaph/d3-geomap.git\n$ cd d3-geomap\n$ npm install\n```\n\nStart the development server:\n```sh\n$ npm run serve\n```\nA browser should open pointed to `http://localhost:8000/examples/`. Choose to view one of the example maps.\n\n## Map Showcase\n\n![World Cup 2014 Players' Birth Countries](https://i.imgur.com/RJbkFEH.png)\n\nThe map above, showing [birth countries of Football World Cup 2014 players](https://maps.ramiro.org/world-cup-2014-players-birth-countries/),\nwas created with d3-geomap. You can find more [example maps here](https://ramiro.org/maps/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaph%2Fd3-geomap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyaph%2Fd3-geomap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyaph%2Fd3-geomap/lists"}