2017 © Pedro Peláez
 

yii2-extension cyii

c3.js widget for Yii 2 Framework.

image

jspaine/cyii

c3.js widget for Yii 2 Framework.

  • Sunday, January 18, 2015
  • by jspaine
  • Repository
  • 2 Watchers
  • 0 Stars
  • 18 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CYii Widget

Add a c3.js chart to your Yii2 app., (*1)

Installation

Run, (*2)

php composer.phar require --prefer-dist jspaine/cyii "dev-master"

or add, (*3)

"jspaine/cyii": "dev-master"

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

Use

In your view file:, (*5)

use jspaine\cyii\CYii;

= CYii::widget([
    'options' => [
        'data' => [
            'x' => 'x',
            'columns' => [
                ['x', 30, 50, 100, 230, 300, 310],
                ['data1', 30, 200, 100, 400, 150, 250],
                ['data2', 130, 300, 200, 300, 250, 450],
            ],
        ]
    ],
    'htmlOptions' => ['id' => 'testchart'],
]); ?>

Options can also be passed as a JSON string., (*6)

The Versions

18/01 2015

dev-master

9999999-dev https://github.com/jspaine/cyii

c3.js widget for Yii 2 Framework.

  Sources   Download

MIT

The Requires

 

by James Paine

extension yii2 widget d3 c3 c3.js