simialbi/yii2-widget-chart 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

simialbi/yii2-widget-chart

最新稳定版本:0.8.1

Composer 安装命令:

composer require simialbi/yii2-widget-chart

包简介

Chart implementation of amcharts for yii2 framework

README 文档

README

Wrapper for amcharts4 library.

Latest Stable Version Total Downloads Build Status License

Resources

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require --prefer-dist "simialbi/yii2-widget-chart"

or add

{
	"require": {
  		"simialbi/yii2-widget-chart": "^0.5"
	}
}

to the require section of your composer.json

Example Usage

<?php
/* @var $this yii\web\View */
/* @var $image stdClass */

use simialbi\yii2\chart\widgets\LineChart;

$this->title = 'my example';
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="my-example">
<?php
echo  LineChart::widget([
  'data' => [
      [
          'country' => 'Lithuania',
          'litres' => 501.9
      ],
      [
          'country' => 'Czech Republic',
          'litres' => 301.9
      ],
      [
          'country' => 'Ireland',
          'litres' => 201.1
      ],
      [
          'country' => 'Germany',
          'litres' => 165.8
      ],
      [
          'country' => 'Australia',
          'litres' => 139.9
      ],
      [
          'country' => 'Austria',
          'litres' => 128.3
      ],
      [
          'country' => 'UK',
          'litres' => 99
      ],
      [
          'country' => 'Belgium',
          'litres' => 60
      ],
      [
          'country' => 'The Netherlands',
          'litres' => 50
      ]
  ]
]);
?>
</div>

License

yii2-widget-chart is released under MIT license. See bundled LICENSE for details.

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-01-30