Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yii2mod/yii2-pie
d3pie.js wrapper for yii2
https://github.com/yii2mod/yii2-pie
yii2 yii2-chart yii2-chart-widget yii2-extension yii2-pie
Last synced: about 12 hours ago
JSON representation
d3pie.js wrapper for yii2
- Host: GitHub
- URL: https://github.com/yii2mod/yii2-pie
- Owner: yii2mod
- License: mit
- Created: 2015-02-03T16:50:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-13T13:20:59.000Z (over 8 years ago)
- Last Synced: 2024-09-18T22:35:48.922Z (9 days ago)
- Topics: yii2, yii2-chart, yii2-chart-widget, yii2-extension, yii2-pie
- Language: PHP
- Size: 4.88 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Pie generator
=============
Pie generator using d3pie.js[![Latest Stable Version](https://poser.pugx.org/yii2mod/yii2-pie/v/stable)](https://packagist.org/packages/yii2mod/yii2-pie) [![Total Downloads](https://poser.pugx.org/yii2mod/yii2-pie/downloads)](https://packagist.org/packages/yii2mod/yii2-pie) [![License](https://poser.pugx.org/yii2mod/yii2-pie/license)](https://packagist.org/packages/yii2mod/yii2-pie)
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
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
'pie-id',
'title' => 'Pie Title',
'options' => [
...
],
'content' => [
[
'value' => 10,
'color' => 'none',
'label' => 'Label 1'
],
[
'value' => 30,
'color' => '#fff',
'label' => 'Label 2'
],
]
]); ?>
```