PHPackages                             claudejanz/yii2-google-charts - 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. claudejanz/yii2-google-charts

ActiveYii2-extension

claudejanz/yii2-google-charts
=============================

Yii2 Google Chats extention

1.0.0(8y ago)0103BSD-4-ClausePHP

Since Nov 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/claudejanz/yii2-google-charts)[ Packagist](https://packagist.org/packages/claudejanz/yii2-google-charts)[ RSS](/packages/claudejanz-yii2-google-charts/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (1)Versions (2)Used By (0)

Yii2 Google Chats
=================

[](#yii2-google-chats)

[![Latest Stable Version](https://camo.githubusercontent.com/37307b320e6cba3307f87f0299d5adac7bffebdde964ea4a0ff9eaca641dd844/68747470733a2f2f706f7365722e707567782e6f72672f636c617564656a616e7a2f796969322d676f6f676c652d6368617274732f762f737461626c652e737667)](https://packagist.org/packages/claudejanz/yii2-google-charts) [![Total Downloads](https://camo.githubusercontent.com/b765689343f870be1df06c357955fa7a2d25334668e38bbd40db793d3fe9c9d9/68747470733a2f2f706f7365722e707567782e6f72672f636c617564656a616e7a2f796969322d676f6f676c652d6368617274732f646f776e6c6f6164732e737667)](https://packagist.org/packages/claudejanz/yii2-google-charts) [![Latest Unstable Version](https://camo.githubusercontent.com/af36f03b9cffa2e5ea8ffd2241ea8464500f7c754be7774f2933566e44fb3eb9/68747470733a2f2f706f7365722e707567782e6f72672f636c617564656a616e7a2f796969322d676f6f676c652d6368617274732f762f756e737461626c652e737667)](https://packagist.org/packages/claudejanz/yii2-google-charts) [![License](https://camo.githubusercontent.com/c9977271eb703707bcdcc0fb941de56948a47417246a91b8d80fc0d45710866c/68747470733a2f2f706f7365722e707567782e6f72672f636c617564656a616e7a2f796969322d676f6f676c652d6368617274732f6c6963656e73652e737667)](https://packagist.org/packages/claudejanz/yii2-google-charts)

Yii2 Google Chats extention. This plugin don't reload main librairies on Pjax calls.

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist claudejanz/yii2-google-charts "*"

```

or add

```
"claudejanz/yii2-google-charts": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
use claudejanz\googlecharts\GoogleChart;

echo GoogleChart::widget([
    'visualization' => 'PieChart',
    'data' => [
        ['Task', 'Hours per Day'],
        ['Work', 11],
        ['Eat', 2],
        ['Commute', 2],
        ['Watch TV', 2],
        ['Sleep', 7]
    ],
    'pluginOptions' => [
        'title' => 'My Daily Activity'
    ]
]);

echo GoogleChart::widget([
    'visualization' => 'LineChart',
    'data' => [
        ['X', 'Dog'],
        [0, 0], [1, 10], [2, 23], [3, 17], [4, 18], [5, 9],
        [6, 11], [7, 27], [8, 33], [9, 40], [10, 32], [11, 35],
        [12, 30], [13, 40], [14, 42], [15, 47], [16, 44], [17, 48],
        [18, 52], [19, 54], [20, 42], [21, 55], [22, 56], [23, 57],
        [24, 60], [25, 50], [26, 52], [27, 51], [28, 49], [29, 53],
        [30, 55], [31, 60], [32, 61], [33, 59], [34, 62], [35, 65],
        [36, 62], [37, 58], [38, 55], [39, 61], [40, 64], [41, 65],
        [42, 63], [43, 66], [44, 67], [45, 69], [46, 69], [47, 70],
        [48, 72], [49, 68], [50, 66], [51, 65], [52, 67], [53, 70],
        [54, 71], [55, 72], [56, 73], [57, 75], [58, 70], [59, 68],
        [60, 64], [61, 60], [62, 65], [63, 67], [64, 68], [65, 69],
        [66, 70], [67, 72], [68, 75], [69, 80]
    ],
    'pluginOptions' => [
        'hAxis' => [
            'title' => 'Time'
        ],
        'vAxis' => [
            'title' => 'Popularity'
        ],
        'backgroundColor' => '#f1f8e9'
    ]
]);

echo GoogleChart::widget([
    'visualization' => 'Gauge',
    'packages' => ['gauge'],
    'data' => [
        ['Label', 'Value'],
        ['Memory', 80],
        ['CPU', 55],
        ['Network', 68]
    ],
    'pluginOptions' => [
        'redFrom' => 90,
        'redTo' => 100,
        'yellowFrom' => 75,
        'yellowTo' => 90,
        'minorTicks' => 5
    ]
]);

$this->registerJsFile('https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY');
echo GoogleChart::widget([
    'visualization' => 'Map',
    'packages' => ['map'], //default is corechart
    'data' => [
        ['Country', 'Population'],
        ['China', 'China: 1,363,800,000'],
        ['India', 'India: 1,242,620,000'],
        ['US', 'US: 317,842,000'],
        ['Indonesia', 'Indonesia: 247,424,598'],
        ['Brazil', 'Brazil: 201,032,714'],
        ['Pakistan', 'Pakistan: 186,134,000'],
        ['Nigeria', 'Nigeria: 173,615,000'],
        ['Bangladesh', 'Bangladesh: 152,518,015'],
        ['Russia', 'Russia: 146,019,512'],
        ['Japan', 'Japan: 127,120,000']
      ],
    'pluginOptions' => [
        'showTooltip' => true,
        'showInfoWindow' => true,
    ]
]);
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3110d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1180289?v=4)[Claude JANZ](/maintainers/claudejanz)[@claudejanz](https://github.com/claudejanz)

---

Tags

yii2extension

### Embed Badge

![Health badge](/badges/claudejanz-yii2-google-charts/health.svg)

```
[![Health](https://phpackages.com/badges/claudejanz-yii2-google-charts/health.svg)](https://phpackages.com/packages/claudejanz-yii2-google-charts)
```

###  Alternatives

[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.6k47](/packages/skeeks-cms)[dmstr/yii2-cookie-consent

Yii2 Cookie Consent Widget

1452.6k](/packages/dmstr-yii2-cookie-consent)[richardfan1126/yii2-js-register

Yii2 widget to register JS into view

1357.2k7](/packages/richardfan1126-yii2-js-register)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
