{"id":13481398,"url":"https://github.com/bsouthga/d3-exploder","last_synced_at":"2026-02-20T20:03:05.620Z","repository":{"id":26116293,"uuid":"29560719","full_name":"bsouthga/d3-exploder","owner":"bsouthga","description":"Explode d3 maps to create new charts!","archived":false,"fork":false,"pushed_at":"2020-10-01T17:46:11.000Z","size":395,"stargazers_count":94,"open_issues_count":1,"forks_count":15,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-23T17:02:24.723Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://bsouthga.github.io/d3-exploder/","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/bsouthga.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":"2015-01-20T23:26:42.000Z","updated_at":"2026-01-12T17:54:26.000Z","dependencies_parsed_at":"2022-08-06T08:15:30.374Z","dependency_job_id":null,"html_url":"https://github.com/bsouthga/d3-exploder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bsouthga/d3-exploder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsouthga%2Fd3-exploder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsouthga%2Fd3-exploder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsouthga%2Fd3-exploder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsouthga%2Fd3-exploder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bsouthga","download_url":"https://codeload.github.com/bsouthga/d3-exploder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bsouthga%2Fd3-exploder/sbom","scorecard":{"id":256400,"data":{"date":"2025-08-11","repo":{"name":"github.com/bsouthga/d3-exploder","commit":"3183e7783cd4f23cdde10ce74cd4727cbe16d76e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/27 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-832h-xg76-4gv6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-4gmj-3p3h-gm8h","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-17T09:48:47.531Z","repository_id":26116293,"created_at":"2025-08-17T09:48:47.531Z","updated_at":"2025-08-17T09:48:47.531Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29662584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-07-31T17:00:51.494Z","updated_at":"2026-02-20T20:03:05.603Z","avatar_url":"https://github.com/bsouthga.png","language":"JavaScript","funding_links":[],"categories":["JavaScript","Maps"],"sub_categories":[],"readme":"# `d3-exploder`\n\n[![npm version](https://badge.fury.io/js/d3-exploder.svg)](https://badge.fury.io/js/d3-exploder)\n\n### Make your d3 maps explode\n\nA tiny d3 extension which lets you turn your maps into other types of charts!\n\n[See examples here](http://bsouthga.github.io/d3-exploder/)\n\n[Another example brought up by a user](https://jsfiddle.net/9Lpcm56n/16/)\n\n\n### Installation\n\n`d3-exploder` can be installed via `npm`\n\n```\nnpm install d3-exploder\n```\n\n**Note:**\n\nd3-exploder \u003e= 2.0.0 supports d3 v4. For use with d3 v3, install version 1 of d3-exploder.\n\n### Usage\n\n\n```javascript\nimport * as d3 from 'd3';\nimport { exploder } from 'd3-exploder';\n\n\n\n// Create an exploder function\nvar exploder = exploder()\n                .projection(d3.geoAlbersUsa().scale(width))\n                .size(function(d, i) {\n                  // function new size of features in pixels\n                })\n                .position(function(d, index) {\n                  // function returning array [x, y]\n                  // which specifies the position of\n                  // the features in the svg\n                });\n\n// Call exploder, optionally in a transition\n\nvar width = 960,\n    height = 500,\n    centered;\n\nvar projection = d3.geoAlbersUsa().scale(width);\n\nvar path = d3.geoPath()\n    .projection(projection);\n\nvar svg = d3.select(\"body\").append(\"svg\")\n    .attr(\"width\", width)\n    .attr(\"height\", height);\n\nvar g = svg.append(\"g\");\n\n\nd3.json(\"us.json\", function(error, us) {\n\n  var state_features = topojson.feature(us, us.objects.states).features;\n\n  var scale = d3.scaleLinear()\n                .domain([0, state_features.length])\n                .range([0, 360]);\n\n  var states = g.append(\"g\")\n      .attr(\"id\", \"states\")\n    .selectAll(\"path\")\n      .data(state_features)\n    .enter().append(\"path\")\n      .attr(\"d\", path);\n\n  var exploder = d3.exploder()\n                  .projection(projection)\n                  .size(function(d, i) { return 40; });\n\n  d3.select(\"#shuffle\").on('click', function() {\n    var rand = d3.shuffle(d3.range(state_features.length));\n    states.transition()\n          .duration(500)\n          .call(\n            exploder.position(function(d, index) {\n              var i = rand[index];\n              return [120 + (i%10)*60, 40 + Math.floor(i/10)*60];\n            })\n          );\n  });\n\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsouthga%2Fd3-exploder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbsouthga%2Fd3-exploder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbsouthga%2Fd3-exploder/lists"}