{"id":31846906,"url":"https://github.com/vasturiano/proportions-chart","last_synced_at":"2025-10-12T09:17:41.485Z","repository":{"id":34942493,"uuid":"192840122","full_name":"vasturiano/proportions-chart","owner":"vasturiano","description":"A one-dimensional proportional chart web component for visualizing categorical data","archived":false,"fork":false,"pushed_at":"2025-02-25T17:25:59.000Z","size":354,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-22T09:27:05.366Z","etag":null,"topics":["categorical-data","chart","d3js","data-visualization","proportions"],"latest_commit_sha":null,"homepage":"https://vasturiano.github.io/proportions-chart/example/basic/","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/vasturiano.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-06-20T03:11:25.000Z","updated_at":"2025-03-31T03:36:31.000Z","dependencies_parsed_at":"2025-01-13T21:19:42.204Z","dependency_job_id":"1cb4031c-cc25-4605-90e5-473a4c20c478","html_url":"https://github.com/vasturiano/proportions-chart","commit_stats":{"total_commits":32,"total_committers":1,"mean_commits":32.0,"dds":0.0,"last_synced_commit":"22cd770ab3f19047eb4ca7eebc48ec14e0424019"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":"vasturiano/ui-module","purl":"pkg:github/vasturiano/proportions-chart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fproportions-chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fproportions-chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fproportions-chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fproportions-chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vasturiano","download_url":"https://codeload.github.com/vasturiano/proportions-chart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vasturiano%2Fproportions-chart/sbom","scorecard":{"id":916838,"data":{"date":"2025-08-11","repo":{"name":"github.com/vasturiano/proportions-chart","commit":"d05a8cbc1165da6d0a74decd6e753d180322e6cd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"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":"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":"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":"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":"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":"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":"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":"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":"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":"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":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":"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":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T21:20:18.808Z","repository_id":34942493,"created_at":"2025-08-24T21:20:18.808Z","updated_at":"2025-08-24T21:20:18.808Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010958,"owners_count":26084837,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["categorical-data","chart","d3js","data-visualization","proportions"],"created_at":"2025-10-12T09:17:40.651Z","updated_at":"2025-10-12T09:17:41.480Z","avatar_url":"https://github.com/vasturiano.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Proportions Chart\n=================\n\n[![NPM package][npm-img]][npm-url]\n[![Build Size][build-size-img]][build-size-url]\n[![NPM Downloads][npm-downloads-img]][npm-downloads-url]\n\n\u003cp align=\"center\"\u003e\n     \u003ca href=\"https://vasturiano.github.io/proportions-chart/example/basic\"\u003e\u003cimg width=\"100%\" src=\"https://vasturiano.github.io/proportions-chart/example/preview.png\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nAn interactive one-dimensional proportions chart for representing categorical data.\n\n## Quick start\n\n```js\nimport ProportionsChart from 'proportions-chart';\n```\nor using a *script* tag\n```html\n\u003cscript src=\"//unpkg.com/proportions-chart\"\u003e\u003c/script\u003e\n```\nthen\n```js\nconst myChart = ProportionsChart();\nmyChart(\u003cmyDOMElement\u003e)\n    .data(\u003cmyData\u003e);\n```\n\n## API reference\n\n| Method | Description | Default |\n| --- | --- | :--: |\n| \u003cb\u003edata\u003c/b\u003e([\u003ci\u003earray\u003c/i\u003e]) | Getter/setter for the chart data, as an array of series objects, each representing a chart segment. | `[]` |\n| \u003cb\u003ewidth\u003c/b\u003e([\u003ci\u003enumber\u003c/i\u003e]) | Getter/setter for the chart width in px. | *\u0026lt;window width\u0026gt;* |\n| \u003cb\u003eheight\u003c/b\u003e([\u003ci\u003enumber\u003c/i\u003e]) | Getter/setter for the chart height in px. | *\u0026lt;window height\u0026gt;* |\n| \u003cb\u003elabel\u003c/b\u003e([\u003ci\u003estring\u003c/i\u003e or \u003ci\u003efn\u003c/i\u003e]) | Getter/setter for a series object label accessor, used to display labels on the segments and their tooltips. | `name` |\n| \u003cb\u003esize\u003c/b\u003e([\u003ci\u003estring\u003c/i\u003e or \u003ci\u003efn\u003c/i\u003e]) | Getter/setter for a series object size accessor, used to compute the length of the segments. | `value` |\n| \u003cb\u003ecolor\u003c/b\u003e([\u003ci\u003estring\u003c/i\u003e or \u003ci\u003efn\u003c/i\u003e]) | Getter/setter for a series object color accessor, used to color the segments. | \u003ci\u003egrey\u003c/i\u003e |\n| \u003cb\u003esort\u003c/b\u003e([\u003ci\u003efn\u003c/i\u003e]) | Getter/setter for the compare method used to sort the series. A value of `null` (*default*) maintains the existing order found in the input data structure. This method receives two arguments representing two series objects and expects a numeric return value (`-1`, `0` or `1`) indicating the order. For example, to order segments by size, use: `(a, b) =\u003e b.size - a.size`. | *\u0026lt;existing order*\u0026gt; |\n| \u003cb\u003eshowLabels\u003c/b\u003e([\u003ci\u003eboolean\u003c/i\u003e]) | Getter/setter for whether to show labels in the segments. Regardless of this setting, labels too large to fit within a segment's boundaries are automatically hidden. | `true` |\n| \u003cb\u003etooltipContent\u003c/b\u003e([\u003ci\u003efn\u003c/i\u003e]) | Getter/setter for a series object tooltip content accessor function. Use this to specify extra content in each of the segment's tooltips in addition to the series name that's included by default. | *\u0026lt;value (%)*\u0026gt; |\n| \u003cb\u003eonHover\u003c/b\u003e([\u003ci\u003efn\u003c/i\u003e]) | Callback function for mouse hover events. The series object (or `null` if hovering outside the chart area) and the event object are included as arguments `onHover(series, event)`. | |\n| \u003cb\u003eonClick\u003c/b\u003e([\u003ci\u003efn\u003c/i\u003e]) | Callback function for click events. The series object and the event object are included as arguments `onClick(series, event)`. | |\n| \u003cb\u003eonRightClick\u003c/b\u003e([\u003ci\u003efn\u003c/i\u003e]) | Callback function for right-click events. The series object and the event object are included as arguments `onRightClick(series, event)`. A falsy value (default) will fallback to the default browser behaviour, which is to open the context menu. | |\n\n\n[npm-img]: https://img.shields.io/npm/v/proportions-chart\n[npm-url]: https://npmjs.org/package/proportions-chart\n[build-size-img]: https://img.shields.io/bundlephobia/minzip/proportions-chart\n[build-size-url]: https://bundlephobia.com/result?p=proportions-chart\n[npm-downloads-img]: https://img.shields.io/npm/dt/proportions-chart\n[npm-downloads-url]: https://www.npmtrends.com/proportions-chart\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasturiano%2Fproportions-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvasturiano%2Fproportions-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvasturiano%2Fproportions-chart/lists"}