{"id":13990059,"url":"https://github.com/laem/async-cartogram","last_synced_at":"2025-03-20T07:30:40.018Z","repository":{"id":34062210,"uuid":"37848178","full_name":"laem/async-cartogram","owner":"laem","description":"Javascript non-blocking cartograms (web workers / node)","archived":false,"fork":false,"pushed_at":"2015-06-25T08:45:50.000Z","size":2368,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-28T23:46:03.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://laem.github.io/async-cartogram/","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/laem.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}},"created_at":"2015-06-22T09:55:14.000Z","updated_at":"2021-05-18T14:28:56.000Z","dependencies_parsed_at":"2022-07-16T09:06:16.801Z","dependency_job_id":null,"html_url":"https://github.com/laem/async-cartogram","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/laem%2Fasync-cartogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laem%2Fasync-cartogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laem%2Fasync-cartogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/laem%2Fasync-cartogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/laem","download_url":"https://codeload.github.com/laem/async-cartogram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244059396,"owners_count":20391315,"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":[],"created_at":"2024-08-09T13:02:19.531Z","updated_at":"2025-03-20T07:30:35.001Z","avatar_url":"https://github.com/laem.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"What ?\n-----------\n\nA **js cartogram library** that does not block the browser, using **web workers**, forked from the original [d3 cartogram](http://prag.ma/code/d3-cartogram/). It can also be run with **node**, which is nice for preprocessing geometries offline.\n\n- Designed to handle a series of cartograms (called tasks) : compute all the maps at once then display them smoothly.\n\n- Using only a geo subset of d3 (you'll probably use d3 again to display the map in the browser, add colors, transitions, hovers...).\n\n- Also attempts to add the effective range tip from Algorithms for Cartogram Animation,\nby Ouyang et al., hopefully making it slightly faster.\n\nUsage :\n--------\n\nThe library is compiled in `dist/` as [UMD](https://github.com/umdjs/umd), and has been tested using `require(\"dist/async-cartogram.js\")`\n\n```js\nvar promiseOfGeometries = AsyncCartogram(\n  {\n    topology: topojsonData,\n    // geometries to reshape:\n    geometries: topojsonData.objects.OBJECTNAME.geometries,\n    projection: {\n      name: 'mercator',\n      translation: [X,Y],\n      scaling: scalingFactor, //e.g. 2000\n      center: [long, lat]\n    }\n  },\n  values, // { taskId =\u003e { geoJsonFeatureValue =\u003e newArea} }\n  featureProperty // geoJsonFeatureIdKey to link geojson features to values\n);\n```\n\nSee the [example](https://github.com/laem/async-cartogram/tree/master/example) app (cartogram of Paris) for detailed usage.\n\n\n![L'escargot](https://raw.githubusercontent.com/laem/async-cartogram/master/example/capture.png)\n\nCheck the project for which this lib was created, [a 90-years cartogram of europe](https://github.com/laem/eurpop).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaem%2Fasync-cartogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaem%2Fasync-cartogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaem%2Fasync-cartogram/lists"}