https://github.com/adrianvillamayor/pie-chart
Generates a chart pie/donut format in css and html vanilla, designed for emails.
https://github.com/adrianvillamayor/pie-chart
chart-donut chart-pie charts css donut email html php pie
Last synced: 7 months ago
JSON representation
Generates a chart pie/donut format in css and html vanilla, designed for emails.
- Host: GitHub
- URL: https://github.com/adrianvillamayor/pie-chart
- Owner: AdrianVillamayor
- License: mit
- Created: 2018-08-27T15:11:38.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-10-15T12:42:52.000Z (almost 5 years ago)
- Last Synced: 2025-03-19T20:18:55.719Z (7 months ago)
- Topics: chart-donut, chart-pie, charts, css, donut, email, html, php, pie
- Language: PHP
- Homepage:
- Size: 40 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Pie Chart
Generates a chart pie/donut format in css and html vanilla
## Installation```php
require_once 'pieGenerator.php';
```
## Usage
```php
/**
* Generates a chart pie/donut format in css and html vanilla
*
* @param array $percentages Percentages to generate the chart (the sum has to be 100)
* @param array $colors Array of colors that will split the chart
* @param string $type Type of chart (default 'pie')
*
* return null/string
*/$percentages = array(11, 10, 61, 14, 4);
$colors = array('#007bff', '#e83e8c', '#fd7e14', '#28a745', '#17a2b8');
$pie = pieGenerator($percentages, $colors);```
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.
## Acknowledgments


## License
[MIT](https://github.com/AdrianVillamayor/Pie-Chart-PHP/blob/master/LICENSE)