yii2mod/yii2-pie

Pie generator using d3pie.js

Installs: 4 171

Dependents: 0

Suggesters: 0

Security: 0

Stars: 5

Watchers: 3

Forks: 2

Open Issues: 1

Type:yii2-extension

1.0 2015-06-17 09:40 UTC

This package is not auto-updated.

Last update: 2024-11-09 17:56:01 UTC


README

Pie generator using d3pie.js

Latest Stable Version Total Downloads License

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'
        ],
    ]
]); ?>