PHPackages                             cjsaylor/gchart - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. cjsaylor/gchart

AbandonedArchivedCakephp-plugin

cjsaylor/gchart
===============

CakePHP helper wrapper for Google's Visualization API

2.0.2(12y ago)181179[2 issues](https://github.com/cjsaylor/gchart/issues)MITPHPPHP &gt;=5.3.0

Since Dec 27Pushed 11y ago5 watchersCompare

[ Source](https://github.com/cjsaylor/gchart)[ Packagist](https://packagist.org/packages/cjsaylor/gchart)[ Docs](https://github.com/cakephp/debug_kit)[ RSS](/packages/cjsaylor-gchart/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

GChart [![Build Status](https://camo.githubusercontent.com/a25d2317fde6928fb9db21d37f53830904a5cf2bcf22802b3b56f8d211a22119/68747470733a2f2f7472617669732d63692e6f72672f636a7361796c6f722f6763686172742e706e67)](https://travis-ci.org/cjsaylor/gchart)
=======================================================================================================================================================================================================================================================

[](#gchart-)

Google visualization API wrapper helper for CakePHP that adds a simple API within CakePHP to create line, bar, area, and pie charts.

Requirements
------------

[](#requirements)

- PHP 5.3+
- CakePHP 2.\* (1.3 is no longer supported, but available in the `1.3` branch)

Installation
------------

[](#installation)

### Using Composer

[](#using-composer)

Ensure require is present in composer.json. This will install the plugin into Plugin/DebugKit:

```
{
    "require": {
        "cjsaylor/gchart": "2.0.*"
    }
}
```

### Using git submodules or downloaded source

[](#using-git-submodules-or-downloaded-source)

- Add the submodule as a plugin. (or simply copy the contents)

`git clone git://github.com/cjsaylor/gchart.git app/Plugin/GChart`

### CakePHP Setup

[](#cakephp-setup)

- Load the plugin in your bootstrap.

```
CakePlugin::load('GChart');
```

- Make available as a helper if you app.

```
$this->helpers[] = 'GChart.GChart';
```

- Include Google's jsapi script in your layout/view.

```

```

Example
-------

[](#example)

### In your controller

[](#in-your-controller)

```
