yii2mod / yii2-pie
Pie generator using d3pie.js
Installs: 4 168
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 3
Forks: 2
Open Issues: 1
Type:yii2-extension
Requires
- bower-asset/d3pie: 0.1.5
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2024-10-26 17:40:22 UTC
README
Pie generator using d3pie.js
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2mod/yii2-pie "*"
or add
"yii2mod/yii2-pie": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php echo Pie::widget([ 'id' => 'pie-id', 'title' => 'Pie Title', 'options' => [ ... ], 'content' => [ [ 'value' => 10, 'color' => 'none', 'label' => 'Label 1' ], [ 'value' => 30, 'color' => '#fff', 'label' => 'Label 2' ], ] ]); ?>