定制 hscstudio/yii2-chart 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hscstudio/yii2-chart

最新稳定版本:1.0.0

Composer 安装命令:

composer require hscstudio/yii2-chart

包简介

Chart Extension for Yii 2.0 With ChartNewJs

README 文档

README

Chart Extension for Yii 2.0 With ChartNewJs

Latest Stable Version Total Downloads Latest Unstable Version License

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

Installation

The preferred way to install this extension is through composer.

Either run

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

or add

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

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

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

or

<?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]],
  ],
]);
?>

统计信息

  • 总下载量: 996
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-06-18