2017 © Pedro Peláez
 

yii2-extension yii2-c3js-chart

C3JS Chart for Yii Framework 2.0

image

kongoon/yii2-c3js-chart

C3JS Chart for Yii Framework 2.0

  • Monday, May 23, 2016
  • by kongoon
  • Repository
  • 1 Watchers
  • 0 Stars
  • 177 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 12 % Grown

The README.md

Yii2 C3JS Chart Widget

Easily add C3JS graphs to your Yii2 application., (*1)

Screen Shot, (*2)

Install

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

Either run, (*4)

composer require kongoon/yii2-c3js-chart

Usage

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

use kongoon\c3js\C3JS;

echo C3JS::widget([
    'options' => [
        'data' => [
            'x' => 'x',
            'columns' => [
                ['x', '2016-01-01', '2016-02-01', '2016-03-01', '2016-04-01', '2016-05-01', '2016-06-01'],
                ['data1', 30, 200, 100, 400, 150, 250],
                ['data2', 50, 20, 10, 40, 15, 25]
            ],
            'types' => [
                'data1' => 'bar',
                'data2' => 'bar'
            ],
        ],

        'axis' => [
            'y' => [
                'label' => [
                    'text' => 'Y Label',
                    'position' => 'outer-middle',
                ]
            ],
            'x' => [
                'type' => 'timeseries',
                'tick' => [
                    'format' => '%Y-%m-%d'
                ],
                'label' => [
                    'text' => 'X Label',
                    'position' => 'outer-middle',
                ]
            ]
        ]
    ],

]);

The Versions

23/05 2016

dev-master

9999999-dev https://github.com/kongoon/yii2-c3js

C3JS Chart for Yii Framework 2.0

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 yii chart c3js

23/05 2016

0.0.4

0.0.4.0 https://github.com/kongoon/yii2-c3js

C3JS Chart for Yii Framework 2.0

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 yii chart c3js

23/05 2016

0.0.3

0.0.3.0 https://github.com/kongoon/yii2-c3js

C3JS Chart for Yii Framework 2.0

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 yii chart c3js

23/05 2016

0.0.2

0.0.2.0 https://github.com/kongoon/yii2-c3js

C3JS Chart for Yii Framework 2.0

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 yii chart c3js

23/05 2016

0.0.1

0.0.1.0 https://github.com/kongoon/yii2-c3js

C3JS Chart for Yii Framework 2.0

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 yii chart c3js