ziwot/cake-chartscss

ChartsCss plugin for CakePHP

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:cakephp-plugin

v0.0.2 2025-08-31 12:21 UTC

This package is auto-updated.

Last update: 2025-08-31 12:42:10 UTC


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',
]) ?>