定制 ziwot/cake-chartscss 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ziwot/cake-chartscss

最新稳定版本:v0.0.3

Composer 安装命令:

composer require ziwot/cake-chartscss

包简介

ChartsCss plugin for CakePHP

README 文档

README

tests Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-24