https://github.com/ziwot/cake-chartscss
ChartsCss plugin for CakePHP
https://github.com/ziwot/cake-chartscss
Last synced: 5 months ago
JSON representation
ChartsCss plugin for CakePHP
- Host: GitHub
- URL: https://github.com/ziwot/cake-chartscss
- Owner: ziwot
- License: mit
- Created: 2025-08-24T15:58:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-09-20T09:59:51.000Z (9 months ago)
- Last Synced: 2025-09-20T11:44:05.462Z (9 months ago)
- Language: PHP
- Homepage:
- Size: 30.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ChartsCss

[](https://packagist.org/packages/ziwot/cake-chartscss)
[](https://packagist.org/packages/ziwot/cake-chartscss)
[](https://packagist.org/packages/ziwot/cake-chartscss)
[](https://packagist.org/packages/ziwot/cake-chartscss)
[](https://packagist.org/packages/ziwot/cake-chartscss)
[ChartsCss](https://chartscss.org/) plugin for CakePHP
Install with:
```sh
composer require ziwot/cake-chartscss
```
Load the plugin:
```sh
bin/cake plugin load ChartsCss
```
Link assets:
```sh
cake plugin assets symlink
```
You should also add it to your `.gitignore`:
```
# Plugins
/webroot/charts_css
```
Of course, when you deploy to prod, then, copy the assets:
```sh
cake plugin assets copy
```
Example Usage:
```
append('css', $this->Html->css('ChartsCss.charts.min'));
$data = [
2020 => '$ .6',
2021 => '$ .7',
2022 => '$ .77',
2023 => '$ .73',
2024 => '$ .80',
2025 => .88,
];
?>
= $this->Chart->make($data, [
'caption' => 'Coffee Value',
'table' => 'area show-heading show-labels data-outside show-primary-axis show-4-secondary-axes',
]) ?>
```
Demo:
You can see a demo there : [sandbox.sjehan.net/cake-charts-css](https://sandbox.sjehan.net/cake-charts-css)