PHP code example of code-works / yii-c3js
1. Go to this page and download the library: Download code-works/yii-c3js library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
code-works / yii-c3js example snippets
$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)
),
)
)
));