2017 © Pedro Peláez
 

yii2-extension yii2-chartjs-widget

ChartJs 2 for Yii2 widget

image

yiier/yii2-chartjs-widget

ChartJs 2 for Yii2 widget

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 17 % Grown

The README.md

ChartJs Widget

ChartJs 2 for Yii2 widget, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

"yiier/yii2-chartjs-widget": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

<?= ChartJs::widget([
    'type' => 'line',
    'options' => [
        'height' => 200,
        'width' => 600
    ],
    'data' => [
        'labels' => ["January", "February", "March", "April", "May", "June", "July"],
         'datasets' => [
             [
                 'label'=> '# of Votes',
                 'data' => [65, 59, 90, 81, 56, 55, 40]
             ],
             [
                 'label'=> '# of Votes',
                 'data' => [28, 48, 40, 19, 96, 27, 100]
             ]
         ]
    ]
]);?>

Credits

2amigos/yii2-chartjs-widget, (*7)

The Versions

04/05 2018

dev-master

9999999-dev

ChartJs 2 for Yii2 widget

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 widget chartjs

04/05 2018

v1.3

1.3.0.0

ChartJs 2 for Yii2 widget

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 widget chartjs

12/04 2018

v1.2

1.2.0.0

ChartJs 2 for Yii2 widget

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 widget chartjs

17/05 2016

v1.1

1.1.0.0

ChartJs 2 for Yii2 widget

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 widget chartjs

17/05 2016

v1.0

1.0.0.0

ChartJs 2 for Yii2 widget

  Sources   Download

BSD-3-Clause

The Requires

 

extension yii2 widget chartjs