machour/yii2-sparkline
最新稳定版本:1.0.0
Composer 安装命令:
composer require machour/yii2-sparkline
包简介
Yii2 jQuery Sparkline widget
README 文档
README
The jQuery sparkline assets and widget for Yii2.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist machour/yii2-sparkline "*"
or add
"machour/yii2-sparkline": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, use the widget this way:
<?= \machour\sparkline\Sparkline::widget([ 'clientOptions' => [ 'type' => 'bar', 'height' => 20, 'barColor' => '#00a65a', ], 'data' => [90, 80, 90, -70, 61, -83, 63] ]); ?>
This would produce the following sparkline: 
This documentation is available online
统计信息
- 总下载量: 30.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-10-02