2017 © Pedro Peláez
 

library yii-c3js

c2.js adapter for the Yii Framework

image

code-works/yii-c3js

c2.js adapter for the Yii Framework

  • Sunday, June 26, 2016
  • by Tak0r
  • Repository
  • 1 Watchers
  • 0 Stars
  • 4 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Yii c3.js Widget

Latest Stable Version Total Downloads License Scrutinizer Code Quality, (*1)

Easily add C3.js graphs to your Yii application., (*2)

Requirements

  • Yii 1.1.5 or above
  • PHP 5.1 or above

Installation

  • Extract the release file under protected/extensions/

Usage

To use this widget, you may insert the following code into a view file:, (*3)

$this->Widget('ext.c3js.C3JsWidget', array(
    'options' => array(
        'title' => array(
            'text' => "My Chart"
        ),
        'data' => array(
            'columns' => array(
                array('data1', 30, 200, 100, 400, 150, 250)
            ),
        )
    )
));
?>

By configuring the options property, you may specify the options that need to be passed to the C3.js JavaScript object. Please refer to the demo gallery and documentation on the C3.js website for possible options., (*4)

Alternatively, you can use a valid JSON string in place of an associative array to specify options ```, (*5)

Note: You must provide a valid JSON string (double quotes) when using the second option. You can quickly validate your JSON string online using JSONLint., (*6)

The Versions

26/06 2016

dev-master

9999999-dev

c2.js adapter for the Yii Framework

  Sources   Download

MIT

by Frank Gehann

yii c3 c3js

26/06 2016

v1.0.0

1.0.0.0

c2.js adapter for the Yii Framework

  Sources   Download

MIT

by Frank Gehann

yii c3 c3js