2017 © Pedro Peláez
 

yii2-extension yii2-chart

Chart Extension for Yii 2.0 With ChartNewJs

image

hscstudio/yii2-chart

Chart Extension for Yii 2.0 With ChartNewJs

  • Wednesday, October 28, 2015
  • by hscstudio
  • Repository
  • 1 Watchers
  • 1 Stars
  • 468 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

yii2-chart

Chart Extension for Yii 2.0 With ChartNewJs, (*1)

Latest Stable Version Total Downloads Latest Unstable Version License, (*2)

What is ChartNewJs?? It's library for chart from https://github.com/FVANCOP/ChartNew.js/ This library improved from https://github.com/nnnick/Chart.js/ with awesome added feature, (*3)

Installation

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

Either run, (*5)

php composer.phar require --prefer-dist hscstudio/yii2-chart "~1.0"

or add, (*6)

"hscstudio/yii2-chart": "~1.0"

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

Usage

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

<?= \hscstudio\chart\Chart::widget(); ?>

or, (*9)

<?php
use hscstudio\chart\ChartNew;
echo ChartNew::widget([
  'type'=>'bar', # pie, doughnut, line, bar, horizontalBar, radar, polar, stackedBar, polarArea
  'title'=>'PHP Framework',
  'labels'=>['Yii','Laravel','CI','Symfony'],
  'datasets' => [
      ['title'=>'2014','data'=>[35,45,15,5]],
      ['title'=>'2015','data'=>[45,35,5,15]],
  ],
]);
?>

The Versions

28/10 2015

dev-master

9999999-dev

Chart Extension for Yii 2.0 With ChartNewJs

  Sources   Download

MIT

extension yii2 chartjs chart chartnew

18/06 2015

1.0.0

1.0.0.0

Chart Extension for Yii 2.0 With ChartNewJs

  Sources   Download

MIT

extension yii2 chartjs chart chartnew