{"id":19084226,"url":"https://github.com/d3-node/d3node-map-world","last_synced_at":"2025-04-18T11:33:01.284Z","repository":{"id":57224091,"uuid":"97361119","full_name":"d3-node/d3node-map-world","owner":"d3-node","description":"Choropleth map of World populations (w/ 43 projections)","archived":false,"fork":false,"pushed_at":"2017-07-18T18:07:19.000Z","size":2134,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T17:22:29.941Z","etag":null,"topics":["albers","choropleth","d3js","gis","mercator","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/d3-node.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-16T05:02:14.000Z","updated_at":"2024-04-20T00:31:55.000Z","dependencies_parsed_at":"2022-09-04T07:40:45.065Z","dependency_job_id":null,"html_url":"https://github.com/d3-node/d3node-map-world","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-map-world","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-map-world/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-map-world/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/d3-node%2Fd3node-map-world/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/d3-node","download_url":"https://codeload.github.com/d3-node/d3node-map-world/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223780008,"owners_count":17201287,"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":["albers","choropleth","d3js","gis","mercator","nodejs"],"created_at":"2024-11-09T02:50:30.324Z","updated_at":"2024-11-09T02:50:30.979Z","avatar_url":"https://github.com/d3-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Map of World \n\nChoropleth of countries by populations\n\n## Install\n```bash\n$ npm install d3node-map-world\n```\n\n## Usage\n\n```js\nconst d3nMap = require('d3node-map-world');\nconst map = d3nMap(data, { projectionKey: 'Mercator' })\n```\n\nCheck out the [example](./example) for usage.\n\n##### Output the example map to an image\n```\nnpm start\n```\n\n#### Output (Natural Earth projection):\n![map](./example/output-NaturalEarth.png)\n\n## API\n\n### d3nMap(data, options)\n\n##### data\n\n- Type: `Array`\n\nDelimited data file parsed by d3\n\n#### Options `\u003cObject\u003e`\n\n- projectionKey (default: NaturalEarth)\n- width (default: 960)\n- height (default: 500)\n- colors `Hex, RGB color code`\n- colorRanges\n- styles\n\n\n## Other Projections\n#### Albers\n![map](./example/output-Albers.png)\n#### Boggs\n![map](./example/output-Boggs.png)\n#### Collignon\n![map](./example/output-Collignon.png)\n#### CylindricalEqualArea\n![map](./example/output-CylindricalEqualArea.png)\n#### Eckert4\n![map](./example/output-Eckert4.png)\n#### Hammer\n![map](./example/output-Hammer.png)\n#### Hill\n![map](./example/output-Hill.png)\n#### Homolosine\n![map](./example/output-Homolosine.png)\n#### Kavrayskiy7\n![map](./example/output-Kavrayskiy7.png)\n#### Lagrange\n![map](./example/output-Lagrange.png)\n#### Mercator\n![map](./example/output-Mercator.png)\n#### Miller\n![map](./example/output-Miller.png)\n#### Mollweide\n![map](./example/output-Mollweide.png)\n\n\n### LICENSE\n\n[MIT](LICENSE) \u0026copy; [d3-node](https://github.com/d3-node)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-map-world","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fd3-node%2Fd3node-map-world","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fd3-node%2Fd3node-map-world/lists"}