PHPackages                             ptrnov/yii2-fusionchart - 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. ptrnov/yii2-fusionchart

ActiveYii2-extension

ptrnov/yii2-fusionchart
=======================

Chart

1.1.1(8y ago)1866↓100%1BSD-3-ClausePHP

Since Aug 30Pushed 8y ago1 watchersCompare

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

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

Fusonchart for Yii2
===================

[](#fusonchart-for-yii2)

widget render Chart with fusonchart

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

[](#installation)

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

Either run

```
php composer.phar require --prefer-dist ptrnov/yii2-fusionchart "*"

```

or add

```
"ptrnov/yii2-fusionchart": "*"

```

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

Usage
-----

[](#usage)

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

```
	/**
	 * RUNNING IN FUSIONCHART TYPE
	 * column2d,column3d,bar2d
	 * Type,  Ref: http://www.fusioncharts.com/dev/demos/chart-gallery.html
	 * color, Ref: http://dmcritchie.mvps.org/excel/colors.htm
	*/

	//Controllers
	use ptrnov\fusionchart\Chart;
	//use ptrnovlab\models\Userlogin;

	public function actionIndex()
    {
		$model =Userlogin::find()->all(); 				// your Model, example from class user
		$testChart= Chart::Widget([
			'dataArray'=>$model,						//array scource model or manual array or sqlquery
			'dataField'=>['username','id'],				//field['label','value'], normaly value is numeric
			'type'=>'column3d',							//Chart Type
			'renderid'=>'chartContainer',				//unix name render
			'chartOption'=>[
					'caption'=>'judul Header',			//Header Title
					'subCaption'=>'judul Sub',			//Sub Title
					'xaxisName'=>'Month',				//Title Bawah/ posisi x
					'yaxisName'=>'Jumlah', 				//Title Samping/ posisi y
					'theme'=>'fint',					//Theme
					'palettecolors'=> "#583e78,#008ee4,#f8bd19,#e44a00,#6baa01,#ff2e2e",
					'bgColor'=> "#ffffff",				//color Background / warna latar
					'showBorder'=> "0",					//border box outside atau garis kotak luar
					'showCanvasBorder'=> "0",			//border box inside atau garis kotak dalam
			],
		]);

		return $this->render('index',[
				'testChart'=>$testChart
			]);
	}

	//EXAMPLE 2

	public function actionIndex()
    {
		$testChart= Chart::Widget([
			'urlSource'=> 'https://your_api',
			'metode'=>'POST',
			'param'=>[
				'BULAN'=>date("m"),
				'TAHUN'=>date("Y")
			],
			'userid'=>'piter@lukison.com',
			'dataArray'=>'[]',//$actionChartGrantPilotproject,				//array scource model or manual array or sqlquery
			'dataField'=>'[]',//['label','value'],							//field['label','value'], normaly value is numeric
			'type'=>'msline',//msline//'bar3d',//'gantt',					//Chart Type
			'renderid'=>'msline-sales-weekly',								//unix name render
			'autoRender'=>true,
			'width'=>'100%',
			'height'=>'300px',
			//'chartOption'=> api server side
		]);

		return $this->render('index',[
				'testChart'=>$testChart
			]);
	}

	//=== UPDATE FUSIONCHAT WITH AJAX  ===
	$this->registerJs("
		$(document).ready(function (){
			var renderid = document.getElementById('msline-sss-hour-3daystrafik');
			var spnIdRenderid= renderid.getElementsByTagName('span');
			var chartUpdate= spnIdRenderid[0].id;
			//console.log(chartUpdate);
			var initUpdateChart = document.getElementById(chartUpdate);
			$.ajax({
				url: 'https://your_api',
				type: 'POST',
				data: {'TGL':'".date("Y-m-d")."'},
				dataType:'json',
				success: function(data) {
					//===UPDATE CHART ====
					if (data['dataset'][0]['data']!==''){
						initUpdateChart.setChartData({
							chart: data['chart'],
							categories:data['categories'],
							dataset: data['dataset']
						});
					}else{
						initUpdateChart.setChartData({
							chart: data['chart'],
							categories:data['categories'],
							data:[{}]
						});
					}
				}
			});
		});
	",$this::POS_END);

	//views index
	use ptrnov\fusionchart\ChartAsset;
	ChartAsset::register($this);

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~284 days

Total

3

Last Release

2974d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63633a65403b58f193f8e982da52b225b6576473bf39bc2eb2f84c740f015dfa?d=identicon)[ptrnov](/maintainers/ptrnov)

---

Top Contributors

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

---

Tags

yii2extensionchartdiagramgrafikptrnovfusionchart

### Embed Badge

![Health badge](/badges/ptrnov-yii2-fusionchart/health.svg)

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

###  Alternatives

[onmotion/yii2-widget-apexcharts

Yii2 charts widget - wrapper for the ApexCharts.js

1957.6k1](/packages/onmotion-yii2-widget-apexcharts)[daixianceng/yii2-echarts

Echarts widget for Yii2.

6946.9k](/packages/daixianceng-yii2-echarts)[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)

PHPackages © 2026

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