PHPackages                             onixsib/yii2-chartjs-widget - 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. onixsib/yii2-chartjs-widget

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

onixsib/yii2-chartjs-widget
===========================

ChartJs widget for Yii2.

2.0.4(9y ago)04.4k↓25%BSD-3-ClausePHPCI failing

Since Feb 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/onixsib/yii2-chartjs-widget)[ Packagist](https://packagist.org/packages/onixsib/yii2-chartjs-widget)[ Docs](http://yiiwheels.com/extension/chartjs-widget)[ RSS](/packages/onixsib-yii2-chartjs-widget/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

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

[](#chartjs-widget)

[![Latest Version](https://camo.githubusercontent.com/ebfa4c2335ea7f30d8698fa5e389a2143e902403f532e92e7f6fe81bd41b44e5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d63686172746a732d7769646765742e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-chartjs-widget/tags)[![Software License](https://camo.githubusercontent.com/b60331a2084501dc07cf6d6964c0da58dd005d89c45cf3b28b4b22b60f5ec00f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4253442d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/845e09592f4c26d2934aee8578befdb4185c6e00641c6731bfa4e723be9fdddc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d63686172746a732d7769646765742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-chartjs-widget)[![Coverage Status](https://camo.githubusercontent.com/70378d0d1205aa6213a36fe35e9f1d6e769c47b4407db6b9d76b420cba233b6f/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d63686172746a732d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-chartjs-widget/code-structure)[![Quality Score](https://camo.githubusercontent.com/c2cf60a68e02ca6dc2509cd08437a3d13df6469464ddfdbb702cf911e53ab068/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d63686172746a732d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-chartjs-widget)[![Total Downloads](https://camo.githubusercontent.com/7880498f0552d425ff06fd75f9b448fb2930bf2d17091a9325f5b08953f50f0c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d63686172746a732d7769646765742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-chartjs-widget)

Renders a [ChartJs plugin](http://www.chartjs.org/docs/) widget

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/). This requires the composer-asset-plugin, which is also a dependency for yii2 – so if you have yii2 installed, you are most likely already set.

Either run

```
composer require 2amigos/yii2-chartjs-widget:~2.0

```

or add

```
"2amigos/yii2-chartjs-widget" : "~2.0"
```

to the require section of your application's `composer.json` file.

Usage
-----

[](#usage)

The following types are supported:

- Line
- Bar
- Radar
- Polar
- Pie
- Doughnut

The following example is using the `Line` type of chart. Please, check [ChartJs plugin](http://www.chartjs.org/docs/)documentation for the different types supported by the plugin.

```
use dosamigos\chartjs\ChartJs;

```

Further Information
-------------------

[](#further-information)

ChartJs has lots of configuration options. For further information, please check the [ChartJs plugin](http://www.chartjs.org/docs/) website.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [All Contributors](../../contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![2amigOS!](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
> *Web development has never been so fun!*
> [www.2amigos.us](http://www.2amigos.us)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 63.6% 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.

###  Release Activity

Cadence

Every ~229 days

Recently: every ~196 days

Total

6

Last Release

3331d ago

Major Versions

0.1.0 → 1.0.02015-02-03

1.0.0 → 2.0.02015-03-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/d2637e60740c5d05564b34c3ae5e77b8ebcbfcd10e4f2168beb579a7c8f8cf1f?d=identicon)[onixsib](/maintainers/onixsib)

---

Top Contributors

[![tonydspaniard](https://avatars.githubusercontent.com/u/566016?v=4)](https://github.com/tonydspaniard "tonydspaniard (14 commits)")[![onixsib](https://avatars.githubusercontent.com/u/19248452?v=4)](https://github.com/onixsib "onixsib (7 commits)")[![pana1990](https://avatars.githubusercontent.com/u/6630197?v=4)](https://github.com/pana1990 "pana1990 (1 commits)")

---

Tags

yii2extensionwidgetyiichartjsyii 22amigos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/onixsib-yii2-chartjs-widget/health.svg)

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

PHPackages © 2026

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