PHPackages                             speixoto/yii2-amcharts - 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. speixoto/yii2-amcharts

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

speixoto/yii2-amcharts
======================

AmCharts Widget for Yii 2

v0.1.3(6y ago)1414.2k↓25%12[1 issues](https://github.com/speixoto/yii2-amcharts/issues)MITPHP

Since Jun 29Pushed 6y ago3 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (5)Used By (0)

yii2-amcharts
=============

[](#yii2-amcharts)

AmCharts Widget for Yii 2

Installation
============

[](#installation)

This package is registered at packagist.org, so to install it you just need to add a line to your composer.json

```
"require": {
        "speixoto/yii2-amcharts":"*"
},
```

Usage
=====

[](#usage)

Put in your view:

```
$chartConfiguration = [
    'type'         => 'serial',
    'dataProvider' => [['year'  => 2005, 'income' => 23.5],
                       ['year' => 2006, 'income' => 26.2],
                       ['year' => 2007, 'income' => 30.1]
                      ],
   'categoryField' =>  'year',
   'rotate'        => true,

   'categoryAxis' => ['gridPosition' => 'start', 'axisColor' => '#DADADA'],
   'valueAxes'    => [['axisAlpha' => 0.2]],
   'graphs'       => [['type' => 'column',
	                   'title' => 'Income',
	                   'valueField' => 'income',
	                   'lineAlpha' => 0,
	                   'fillColors' => '#ADD981',
	                   'fillAlphas' => 0.8,
	                   'balloonText' => '[[title]] in [[category]]:[[value]]'
                     ]]
];
echo speixoto\amcharts\Widget::widget(['chartConfiguration' => $chartConfiguration]);
```

Another example

```
$chartConfiguration = [
        'type' => 'xy',
        'dataProvider' => [['y' => 10, 'x' => 14, 'value' => 59, 'y2' => -5, 'x2' => -3, 'value2' => 44],
                           ['y' => 5, 'x' => 3, 'value' => 50, 'y2' => -15, 'x2' => -8, 'value2' => 12],
                           ['y' => -10, 'x' => -3, 'value' => 19, 'y2' => -4, 'x2' => 6, 'value2' => 35],
                           ['y' => -6, 'x' => 5, 'value' => 65, 'y2' => -5, 'x2' => -6, 'value2' => 168],
                           ['y' =>  15, 'x' => -4, 'value' => 92, 'y2' => -10, 'x2' => -8, 'value2' => 102],
                           ['y' => 13, 'x' => 1, 'value' => 8, 'y2' => -2, 'x2' => -3, 'value2' => 41],
                           ['y' => 1, 'x' => 6, 'value' => 35, 'y2' => 0, 'x2' => -3, 'value2' => 16],
                          ],
        'pathToImages' =>  '../amcharts/images/',
        'startDuration' => 1.5,
        'valueAxes' => [['position' => 'bottom',
                         'axisAlpha' => 0,
                         'minMaxMultiplayer' => 1.2
                        ],
                        ['position' => 'left',
                         'axisAlpha' => 0,
                         'minMaxMultiplayer' => 1.2
                        ]],

        'graphs' => [['valueField' => 'value',
                      'xField' => 'x',
                      'yField' => 'y',
                      'lineAlpha' => 0,
                      'bullet' => 'bubble',
                      'lineColor' => '#b0de09',
                      'balloonText' => 'x:[[x]] y:[[y]]value:[[value]]'
                      ],
                      ['valueField' => 'value2',
                       'xField' => 'x2',
                       'yField' => 'y2',
                       'lineAlpha' => 0,
                       'bullet' => 'bubble',
                       'lineColor' => '#fcd202',
                       'balloonText' => 'x:[[x]] y:[[y]]value:[[value]]'
                      ]],
        'chartCursor' => [],
        'chartScrollbar' => []
];
echo speixoto\amcharts\Widget::widget(['chartConfiguration' => $chartConfiguration]);
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 82.4% 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 ~683 days

Total

4

Last Release

2292d ago

### Community

Maintainers

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

---

Top Contributors

[![speixoto](https://avatars.githubusercontent.com/u/3430798?v=4)](https://github.com/speixoto "speixoto (28 commits)")[![veksa](https://avatars.githubusercontent.com/u/6467881?v=4)](https://github.com/veksa "veksa (3 commits)")[![ercling](https://avatars.githubusercontent.com/u/1710142?v=4)](https://github.com/ercling "ercling (2 commits)")[![xepozz](https://avatars.githubusercontent.com/u/6815714?v=4)](https://github.com/xepozz "xepozz (1 commits)")

---

Tags

yiiamcharts

### Embed Badge

![Health badge](/badges/speixoto-yii2-amcharts/health.svg)

```
[![Health](https://phpackages.com/badges/speixoto-yii2-amcharts/health.svg)](https://phpackages.com/packages/speixoto-yii2-amcharts)
```

###  Alternatives

[rmrevin/yii2-fontawesome

Asset Bundle for Yii2 with Font Awesome

1474.0M134](/packages/rmrevin-yii2-fontawesome)[kop/yii2-scroll-pager

Infinite AJAX scrolling for Yii2 ListView widget

180706.5k10](/packages/kop-yii2-scroll-pager)[mihaildev/yii2-ckeditor

Yii2 CKEditor

118552.5k50](/packages/mihaildev-yii2-ckeditor)[cebe/yii2-gravatar

Gravatar Widget for Yii 2

441.8M35](/packages/cebe-yii2-gravatar)[brussens/yii2-maintenance-mode

Maintenance mode component for Yii framework 2.x.x version.

78256.3k5](/packages/brussens-yii2-maintenance-mode)[trntv/yii2-aceeditor

Yii2 ajax.org Ace Editor widget

43787.5k20](/packages/trntv-yii2-aceeditor)

PHPackages © 2026

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