{"id":17100630,"url":"https://github.com/jakobhellermann/piechart","last_synced_at":"2025-04-12T23:54:05.636Z","repository":{"id":36712259,"uuid":"229823733","full_name":"jakobhellermann/piechart","owner":"jakobhellermann","description":"a rust crate for drawing fancy pie charts in the terminal","archived":false,"fork":false,"pushed_at":"2021-12-04T14:06:05.000Z","size":47,"stargazers_count":38,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T23:53:59.990Z","etag":null,"topics":["cli","rust","visualization"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jakobhellermann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-23T21:13:28.000Z","updated_at":"2024-05-01T16:21:18.000Z","dependencies_parsed_at":"2022-08-25T08:10:48.479Z","dependency_job_id":null,"html_url":"https://github.com/jakobhellermann/piechart","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/jakobhellermann%2Fpiechart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fpiechart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fpiechart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jakobhellermann%2Fpiechart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jakobhellermann","download_url":"https://codeload.github.com/jakobhellermann/piechart/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647234,"owners_count":21139083,"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":["cli","rust","visualization"],"created_at":"2024-10-14T15:14:18.760Z","updated_at":"2025-04-12T23:54:05.600Z","avatar_url":"https://github.com/jakobhellermann.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"## piechart\n\n`piechart` is a rust crate for drawing fancy pie charts in the terminal.\n\n# Example usage:\n\n```rust\nuse piechart::{Chart, Color, Data};\n\nfn main() {\n    let data = vec![\n        Data { label: \"Chocolate\".into(), value: 4.0, color: Some(Color::Blue.into()), fill: '•' },\n        Data { label: \"Strawberry\".into(), value: 2.0, color: Some(Color::Red.into()), fill: '▪' },\n        Data { label: \"Vanilla\".into(), value: 2.6, color: Some(Color::Yellow.into()), fill: '▴' },\n    ];\n\n    Chart::new()\n        .radius(9)\n        .aspect_ratio(3)\n        .legend(true)\n        .draw(\u0026data);\n}\n```\n\nwill result in\n\n![example image](https://raw.githubusercontent.com/jakobhellermann/piechart/main/examples/config.png)\n\n## CLI Usage\n\nYou can install a small command line tool using this library by running\n```sh\ncargo install piechart --features cli\n```\n\n\n```sh\npiechart --radius 5 A:2.0 B:3.0 'Red:4.0:italic magenta strike:ω' 'Blue:1.0:bold italic blue ul:u'\n```\n\n## Credits\n\nDeveloper: Jakob Hellermann\n\nThe design and code is heaviliy inspired by [piotrmurach's ruby gem](https://github.com/piotrmurach/tty-pie).\n\n## License\n\nThe MIT License (MIT)\n\nCopyright (c) 2019 Jakob Hellermann\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fpiechart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjakobhellermann%2Fpiechart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjakobhellermann%2Fpiechart/lists"}