PHPackages                             skker/yii2-googlecharts - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. skker/yii2-googlecharts

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

skker/yii2-googlecharts
=======================

Google Charts Extension for Yii 2 framework. Forked from bsadnu/yii2-googlecharts

v1.3.4(3y ago)06BSD-2-ClausePHP

Since Nov 8Pushed 3y agoCompare

[ Source](https://github.com/skker/yii2-googlecharts)[ Packagist](https://packagist.org/packages/skker/yii2-googlecharts)[ RSS](/packages/skker-yii2-googlecharts/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Google Charts Extension for Yii 2
=================================

[](#google-charts-extension-for-yii-2)

This extension contains a set of chart widgets based on [Google Charts API](https://developers.google.com/chart/).

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist skker/yii2-googlecharts "*"

```

or add

```
"skker/yii2-googlecharts": "*"
```

to the require section of your composer.json.

Usage
-----

[](#usage)

To use any of these widgets, simply add the following code in your view.

### Column Chart Example

[](#column-chart-example)

```
...
use skker\googlecharts\ColumnChart;
...
```

1. Simple Column Chart

```

```

2. Stacked Column Chart

```

```

3. Trendlines Column Chart

```

```

4. Diff Column Chart

```

```

### Bar Chart Example

[](#bar-chart-example)

```
...
use skker\googlecharts\BarChart;
...
```

1. Simple Bar Chart

```

```

2. Stacked Bar Chart

```

```

### Histogram Example

[](#histogram-example)

```
...
use skker\googlecharts\Histogram;
...
```

```

```

### Combo Chart Example

[](#combo-chart-example)

```
...
use skker\googlecharts\ComboChart;
...
```

```

```

### Line Chart Example

[](#line-chart-example)

```
...
use skker\googlecharts\LineChart;
...
```

1. Simple Line Chart

```

```

2. Line Intervals Chart

```
