dominus77/yii2-highcharts-widget
Composer 安装命令:
composer require dominus77/yii2-highcharts-widget
包简介
Renders a Highcharts widget for Yii2.
README 文档
README
Highcharts widget for Yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require dominus77/yii2-highcharts-widget
or add
"dominus77/yii2-highcharts-widget": "^1.0"
to the require section of your composer.json file.
Usage
View:
<?php use dominus77\highcharts\HighChartsWidget; ?> <?= HighChartsWidget::widget([ 'clientOptions' => [ 'chart' => [ 'type' => 'bar' ], 'title' => [ 'text' => 'Fruit Consumption' ], 'xAxis' => [ 'categories' => [ 'Apples', 'Bananas', 'Oranges' ] ], 'yAxis' => [ 'title' => [ 'text' => 'Fruit eaten' ] ], 'series' => [ ['name' => 'Jane', 'data' => [1, 0, 4]], ['name' => 'John', 'data' => [5, 7, 3]] ] ] ]) ?>
More Information
Please, check the Highcharts Documentation
Testing
$ vendor/bin/phpunit
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-12