{"id":21806174,"url":"https://github.com/adrianvillamayor/pie-chart","last_synced_at":"2026-04-20T05:06:57.161Z","repository":{"id":146388965,"uuid":"146315007","full_name":"AdrianVillamayor/Pie-Chart","owner":"AdrianVillamayor","description":"Generates a chart pie/donut format in css and html vanilla, designed for emails.","archived":false,"fork":false,"pushed_at":"2020-10-15T12:42:52.000Z","size":41,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T20:18:55.719Z","etag":null,"topics":["chart-donut","chart-pie","charts","css","donut","email","html","php","pie"],"latest_commit_sha":null,"homepage":"","language":"PHP","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/AdrianVillamayor.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":"2018-08-27T15:11:38.000Z","updated_at":"2023-01-06T16:06:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"149834be-4fae-444e-ba38-70a283b13a12","html_url":"https://github.com/AdrianVillamayor/Pie-Chart","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/AdrianVillamayor%2FPie-Chart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVillamayor%2FPie-Chart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVillamayor%2FPie-Chart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AdrianVillamayor%2FPie-Chart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AdrianVillamayor","download_url":"https://codeload.github.com/AdrianVillamayor/Pie-Chart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244759899,"owners_count":20505712,"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":["chart-donut","chart-pie","charts","css","donut","email","html","php","pie"],"created_at":"2024-11-27T12:18:12.011Z","updated_at":"2026-04-20T05:06:52.128Z","avatar_url":"https://github.com/AdrianVillamayor.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pie Chart\n\nGenerates a chart pie/donut format in css and html vanilla\n \n## Installation\n\n\n```php\n\n require_once 'pieGenerator.php';\n\n```\n\n## Usage\n\n```php\n/**\n  * Generates a chart pie/donut format in css and html vanilla\n  *\n  * @param array  $percentages Percentages to generate the chart (the sum has to be 100)\n  * @param array  $colors      Array of colors that will split the chart\n  * @param string $type        Type of chart (default 'pie')\n  * \n  * return null/string\n*/\n\n  $percentages = array(11, 10, 61, 14, 4);\n  $colors      = array('#007bff', '#e83e8c', '#fd7e14', '#28a745', '#17a2b8');\n  $pie         = pieGenerator($percentages, $colors);\n\n```\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## Acknowledgments\n\n![Example Pie](https://image.ibb.co/dKkZsp/Captura_de_pantalla_2018_08_27_a_las_17_55_33.png)\n\n![Example Donut](https://image.ibb.co/cbcdk9/Captura_de_pantalla_2018_08_27_a_las_17_49_34.png)\n\n## License\n[MIT](https://github.com/AdrianVillamayor/Pie-Chart-PHP/blob/master/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianvillamayor%2Fpie-chart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadrianvillamayor%2Fpie-chart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadrianvillamayor%2Fpie-chart/lists"}