PHPackages                             cenotia/yii2-chartjs-extended - 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. cenotia/yii2-chartjs-extended

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

cenotia/yii2-chartjs-extended
=============================

Extended ChartJs v2 for Yii2 widget

0583PHP

Since Nov 23Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Cenotia/yii2-chartjs-extended)[ Packagist](https://packagist.org/packages/cenotia/yii2-chartjs-extended)[ RSS](/packages/cenotia-yii2-chartjs-extended/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

ChartJs Widget
==============

[](#chartjs-widget)

Based on [ChartJs 2](http://www.chartjs.org/docs/) for Yii2 widget

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist cenotia/yii2-chartjs-widget "*"

```

or add

```
"cenotia/yii2-chartjs-widget": "*"

```

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

Usage
-----

[](#usage)

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

In the view

```

```

In the controller

```
        //your query returns 6 labels and 6 values
        //use function to get values and * 1 to turn then into numerals otherwise
        //it will strings and the if you use the percentages, it won't work.

        $command = $connection->createCommand("
                    select dimension, measure
                    from yourtable
                    where yourfilter
                    group by dimension
                    limit 6;
	                   ");
        $result4 = $command->queryAll();

        $data4 = [
            'labels' => ArrayHelper::getColumn($result4,'dimension'),
            'datasets' => ArrayHelper::getColumn($result4,function ($element) {
                    return $element['measure']*1;
                })
        ];
```

Credits
-------

[](#credits)

[2amigos/yii2-chartjs-widget](https://github.com/2amigos/yii2-chartjs-widget)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/3b2425b6b6e6797fae375373b2697813cf03e40a8f2d5657b38ab494866c3394?d=identicon)[xvillamuera](/maintainers/xvillamuera)

---

Top Contributors

[![xavsio4](https://avatars.githubusercontent.com/u/1721936?v=4)](https://github.com/xavsio4 "xavsio4 (7 commits)")

---

Tags

chartjs-widgetyii2

### Embed Badge

![Health badge](/badges/cenotia-yii2-chartjs-extended/health.svg)

```
[![Health](https://phpackages.com/badges/cenotia-yii2-chartjs-extended/health.svg)](https://phpackages.com/packages/cenotia-yii2-chartjs-extended)
```

PHPackages © 2026

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