{"id":18386452,"url":"https://github.com/stemmlerjs/react-quant-breakdown","last_synced_at":"2025-10-30T22:31:10.372Z","repository":{"id":57332304,"uuid":"119916075","full_name":"stemmlerjs/react-quant-breakdown","owner":"stemmlerjs","description":"A React component to visualize the quantitative breakdown of a process","archived":false,"fork":false,"pushed_at":"2018-07-24T20:52:37.000Z","size":118,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-11T20:27:17.582Z","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/stemmlerjs.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":"2018-02-02T01:39:48.000Z","updated_at":"2022-12-07T08:38:29.000Z","dependencies_parsed_at":"2022-09-15T12:31:26.120Z","dependency_job_id":null,"html_url":"https://github.com/stemmlerjs/react-quant-breakdown","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/stemmlerjs%2Freact-quant-breakdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-quant-breakdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-quant-breakdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stemmlerjs%2Freact-quant-breakdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stemmlerjs","download_url":"https://codeload.github.com/stemmlerjs/react-quant-breakdown/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239073378,"owners_count":19577088,"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-11-06T01:22:05.959Z","updated_at":"2025-10-30T22:31:09.619Z","avatar_url":"https://github.com/stemmlerjs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-quant-breakdown\n\nA react component to visualize the quantitative breakdown of a process and it's subprocesses.\n\n![component](https://user-images.githubusercontent.com/6892666/35712531-6c6212ac-0790-11e8-8402-2003d216d30a.PNG)\n\n## Getting Started\n\n```\nnpm install quantity-breakdown\n```\n\n## Usage\n\n```jsx\nimport QuantityBreakdown from 'quantity-breakdown';\n\nclass App extends Component {\n  render() {\n    return (\n      \u003cdiv\u003e\n        \u003cQuantityBreakdown \n          text=\"Daily Spend Report\" \n          type=\"cost\"\n          chunks={[\n            { name: 'Coffee', value: 4.23 },\n            { name: 'Lunch', value: 9.32 },\n            { name: 'Gas', value: 50.00 },\n            { name: 'Drinks', value: 23.90 },\n          ]} \n          /\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\n```\n\n| Prop name | Description                                  | Type                                        | Example                                                         |\n|-----------|----------------------------------------------|---------------------------------------------|-----------------------------------------------------------------|\n| title     | The title of the process breakdown component | String                                      | Weekly Spending Report                                          |\n| type      | Type of data to be aggregated                | String: (\"cost\", \"time\")                    | time                                                            |\n| chunks    | The chunks of data to be aggregated          | Array of objects containing name and value | [{ name: 'Gas', value: 50.00 }, {name: 'Drinks', value: 32.23}] |\n\n## Setting up a dev environment\n\nTo run the tests, we can create a link to this project to be used in dev:\n\n```\nnpm i\nnpm run build\nnpm link\n```\n\nThen, in the ```tests``` folder, run:\n\n```\nnpm install\nnpm link quantity-breakdown\nnpm run start\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemmlerjs%2Freact-quant-breakdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstemmlerjs%2Freact-quant-breakdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstemmlerjs%2Freact-quant-breakdown/lists"}