{"id":23666653,"url":"https://github.com/redsift/d3-rs-treemap","last_synced_at":"2026-01-22T21:59:44.710Z","repository":{"id":65599432,"uuid":"65013969","full_name":"redsift/d3-rs-treemap","owner":"redsift","description":"A TreeMap visual component made with D3v4","archived":false,"fork":false,"pushed_at":"2017-01-09T17:53:56.000Z","size":32,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":19,"default_branch":"master","last_synced_at":"2025-09-27T22:52:49.770Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/redsift.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":"2016-08-05T11:34:56.000Z","updated_at":"2018-05-12T08:26:13.000Z","dependencies_parsed_at":"2023-01-31T06:45:16.642Z","dependency_job_id":null,"html_url":"https://github.com/redsift/d3-rs-treemap","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/redsift/d3-rs-treemap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-treemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-treemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-treemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-treemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/redsift","download_url":"https://codeload.github.com/redsift/d3-rs-treemap/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/redsift%2Fd3-rs-treemap/sbom","scorecard":{"id":768090,"data":{"date":"2025-08-11","repo":{"name":"github.com/redsift/d3-rs-treemap","commit":"89f250f7a3c8cb4e3d42ceeda015ee5f16e5a632"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"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":"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":"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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"}}]},"last_synced_at":"2025-08-23T01:26:08.963Z","repository_id":65599432,"created_at":"2025-08-23T01:26:08.963Z","updated_at":"2025-08-23T01:26:08.963Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28672287,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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-12-29T07:33:28.403Z","updated_at":"2026-01-22T21:59:44.695Z","avatar_url":"https://github.com/redsift.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# d3-rs-treemap\n\n`d3-rs-treemap` A TreeMap visual component made with D3v4\n\n## Builds\n\n[![Circle CI](https://circleci.com/gh/redsift/d3-rs-treemap.svg?style=svg)](https://circleci.com/gh/Redsift/d3-rs-treemap)\n[![npm](https://img.shields.io/npm/v/@redsift/d3-rs-treemap.svg?style=flat-square)](https://www.npmjs.com/package/@redsift/d3-rs-treemap)\n[![MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://raw.githubusercontent.com/redsift/d3-rs-treemap/master/LICENSE)\n\n\n## Example\n\n[View @redsift/d3-rs-treemap on Codepen](https://....)\n\n### Treemap chart\n\n![Sample treemp with text](https://bricks.redsift.io/reusable/d3-rs-treemap.svg?_datum={%22name%22:%22root%22,%22children%22:[{%22l%22:%22a%22,%22v%22:%2020},{%22l%22:%22b%22,%22v%22:%2030},{%22l%22:%22c%22,%22v%22:%2010}]}\u0026appendText=true\u0026width=400)\n\n## Usage\n\n### Browser\n  \n  \u003cscript src=\"//static.redsift.io/reusable/d3-rs-treemap/latest/d3-rs-treemap.umd-es2015.min.js\"\u003e\u003c/script\u003e\n  \u003cscript\u003e\n    var treemap = d3_rs_treemap.html();\n  \u003c/script\u003e\n\n### ES6\n\n  import { chart } from \"@redsift/d3-rs-treemap\";\n  let eml = chart.html();\n  ...\n  \n### Require\n\n  var chart = require(\"@redsift/d3-rs-treemap\");\n  var eml = chart.html();\n  ...\n\n### Data layout\n\nData need to be in a hierarchical form as it is described in [d3-hierarchy](https://github.com/d3/d3-hierarchy#hierarchy). The basic criteria is to have the *children* property. If your data are not in a hierarchical form you can use the [stratify](https://github.com/d3/d3-hierarchy#stratify) method in d3-hierarchy to manipulate them.\n\n    {\n      name:'root',\n      children: [\n        {\n          l: 'children1',\n          v: 10\n        },\n        {\n          l: 'children1',\n          v: 10,\n          u: 'http://www.google.com/children2'\n        }\n      ]\n    }\n\nFor this visualization objects inside the *children* array are expected to have the above layout. The `u` property is optional, only if you want to display images so you need to provide a link.\n\n### Parameters\n\n|Name|Description|Transition|\n|----|----------|----------|\n|`classed`| SVG custom class|N|\n|`width`, `height`, `size`, `scale`, `margin`| *Integer* SVG container sizes|Y\n|`style`| *String* Custom CSS to inject into chart| N\n|`fill`| *String, Array, Function* Colour palette for the data. Available options from [d3-rs-theme](https://github.com/Redsift/d3-rs-theme#presentation-color-palette) | Y|\n|`theme`| *String* `dark` or `light`(default)| |\n|`appendText`| *Boolean* Append a text element inside the rect| |\n|`textValue` | *String, Function* for the value of the text element that will be displayed| |\n|`appendImage`| *Boolean* Append an image element inside the rect | Y |\n|`imageFallbackLink`| *String* Helper link of asset to display as a fall back solution when an image fails to load| |\n|`filter`| *String* Filter to be applied on an image as described in [d3-rs-theme#filters](https://github.com/redsift/d3-rs-theme#filters) e.g. `'emboss'`, `'greyscale'`, `'shadow'` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Fd3-rs-treemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fredsift%2Fd3-rs-treemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fredsift%2Fd3-rs-treemap/lists"}