ziwot/cake-chartscss
最新稳定版本:v0.0.3
Composer 安装命令:
composer require ziwot/cake-chartscss
包简介
ChartsCss plugin for CakePHP
README 文档
README
ChartsCss plugin for CakePHP
Install with:
composer require ziwot/cake-chartscss
Load the plugin:
bin/cake plugin load ChartsCss
Link assets:
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:
cake plugin assets copy
Example Usage:
<?php
/**
* @var \App\View\AppView $this
*/
$this->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
统计信息
- 总下载量: 10
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-24