{"id":21614517,"url":"https://github.com/munaibh/d3-strokable-ball","last_synced_at":"2026-05-10T03:40:19.498Z","repository":{"id":92062657,"uuid":"298325542","full_name":"munaibh/d3-strokable-ball","owner":"munaibh","description":"A D3 draggable globe, which allows plotting of points via a json endpoint. Also, allows data to be associated and rendered which each point.","archived":false,"fork":false,"pushed_at":"2020-10-10T12:03:28.000Z","size":50,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T20:41:31.732Z","etag":null,"topics":["d3","draggable","globe","plotting","strokable"],"latest_commit_sha":null,"homepage":"https://munaibh.github.io/d3-strokable-ball/","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/munaibh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-24T15:51:19.000Z","updated_at":"2021-08-25T00:17:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"f68ef8d9-f1e4-4e6d-a08d-0e640407bc1e","html_url":"https://github.com/munaibh/d3-strokable-ball","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/munaibh%2Fd3-strokable-ball","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaibh%2Fd3-strokable-ball/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaibh%2Fd3-strokable-ball/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/munaibh%2Fd3-strokable-ball/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/munaibh","download_url":"https://codeload.github.com/munaibh/d3-strokable-ball/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244265998,"owners_count":20425824,"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":["d3","draggable","globe","plotting","strokable"],"created_at":"2024-11-24T22:08:14.972Z","updated_at":"2026-05-10T03:40:14.428Z","avatar_url":"https://github.com/munaibh.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cspan style=\"font-size: 80px\"\u003e🌍\u003c/span\u003e\n  \u003ch1 align=\"center\"\u003eD3 Strokable Ball\u003c/h1\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cb\u003eA D3 draggable globe, which allows plotting of points via a json endppoint. Also, allows data to be associated and rendered which each point.\u003c/b\u003e\u003cbr\u003e\n  \u003csub\u003e(Demo: \u003ca href=\"https://munaibh.github.io/d3-strokable-ball//\"\u003ehttps://munaibh.github.io/d3-strokable-ball/\u003c/a\u003e)\n  \u003c/sub\u003e\n\u003c/p\u003e\n\n\n## Usage\n\nThis projects plots points found in `points.json` in the `public` directory, any properties placed in the `data` object will be available on clicking of the point. The `coordinates` and are the longitude and latitude for each point. Below is a sample json file.\n\n```json\n{\n  \"features\": [\n    { \"data\": { \"index\": 1, \"emoji\": \"👌\" }, \"coordinates\": [ -122.417168773552248, 37.769195629687431 ] } ,\n    { \"data\": { \"index\": 2, \"emoji\": \"👍\" }, \"coordinates\": [ -87.752000832709314, 41.831936519278429 ] } , \n    { \"data\": { \"index\": 3, \"emoji\": \"🍿\" }, \"coordinates\": [ -118.243683, 34.052235 ] } ,\n    { \"data\": { \"index\": 4, \"emoji\": \"🕐\" }, \"coordinates\": [ -114.062019, 51.044270 ] }, \n    { \"data\": { \"index\": 5, \"emoji\": \"🧠\" }, \"coordinates\": [ 2.154007, 41.390205 ] }  \n  ]\n}\n```\n\n## Theming\n\nCSS Variables can be applied to the `:root` element to theme the globe on the page, the available variables are listed below:\n\n```css\n--globe-base-colour\n--globe-land-colour\n--globe-land-stroke-colour\n--globe-point-background-colour\n--globe-point-stroke-colour\n--globe-point-text-colour\n\n--globe-point-hover-stroke-colour\n--globe-point-hover-background-colour\n--globe-point-hover-text-colour\n```\n\n## Credits\n\nThis code references an existing globe project found here (http://bl.ocks.org/tlfrd/df1f1f705c7940a6a7c0dca47041fec8), thank you generous soul!\n\n\n\n\u003cbr\u003e\n\u003ch3 align=\"center\"\u003e\n  Enjoy! 🤙\n\u003c/h3\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunaibh%2Fd3-strokable-ball","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmunaibh%2Fd3-strokable-ball","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmunaibh%2Fd3-strokable-ball/lists"}