2017 © Pedro Peláez
 

yii2-extension yii2-c3-chart

Yii2 wrapper for D3-based reusable chart library

image

yii2mod/yii2-c3-chart

Yii2 wrapper for D3-based reusable chart library

  • Saturday, August 26, 2017
  • by disem
  • Repository
  • 7 Watchers
  • 11 Stars
  • 6,844 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

, (*1)

Yii2 Chart Widget


Yii2 wrapper for D3-based reusable chart library, (*2)

Latest Stable Version Total Downloads License Build Status, (*3)

Installation

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

Either run, (*5)

php composer.phar require --prefer-dist yii2mod/yii2-c3-chart "*"

or add, (*6)

"yii2mod/yii2-c3-chart": "*"

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

Usage

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

<?php echo \yii2mod\c3\chart\Chart::widget([
    'options' => [
            'id' => 'popularity_chart'
    ],
    'clientOptions' => [
       'data' => [
            'x' => 'x',
            'columns' => [
                ['x', 'week 1', 'week 2', 'week 3', 'week 4'],
                ['Popularity', 10, 20, 30, 50]
            ],
            'colors' => [
                'Popularity' => '#4EB269',
            ],
        ],
        'axis' => [
            'x' => [
                'label' => 'Month',
                'type' => 'category'
            ],
            'y' => [
                'label' => [
                    'text' => 'Popularity',
                    'position' => 'outer-top'
                ],
                'min' => 0,
                'max' => 100,
                'padding' => ['top' => 10, 'bottom' => 0]
            ]
        ]
    ]
]); ?>

Chart Examples

You can find them on the examples page, (*9)

Chart Options

You can find them on the options page, (*10)

The Versions

26/08 2017

dev-master

9999999-dev

Yii2 wrapper for D3-based reusable chart library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 yii2 c3.js yii2 c3 chart

07/03 2017

1.0.2

1.0.2.0

Yii2 wrapper for D3-based reusable chart library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 yii2 c3.js yii2 c3 chart

07/03 2017

1.0.1

1.0.1.0

Yii2 wrapper for D3-based reusable chart library

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 yii2 c3.js yii2 c3 chart

30/08 2016

1.0

1.0.0.0

Yii2 wrapper for D3-based reusable chart library

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 yii2 c3.js yii2 c3 chart

01/10 2015

0.2

0.2.0.0

Yii2 wrapper for D3-based reusable chart library

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 module

20/07 2015

0.1

0.1.0.0

Yii2 wrapper for D3-based reusable chart library

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 module