conquer/peity Yii2 peity widget

extensionwidgetpeity

Peity widget for Yii2 framework

Description

Peity (sounds like deity) is a simple jQuery plugin that converts an element's content into a simple mini pie donut line or bar chart and is compatible with any browser that supports : Chrome, Firefox, IE9+, Opera, Safari. For more information please visit Peity

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require conquer/peity "*"

or add

"conquer/peity": "*"

to the require section of your composer.json file.

Usage

<?php
use conquer\peity\PeityBarWidget;
use conquer\peity\PeityLineWidget;
use conquer\peity\PeityPieWidget;
use conquer\peity\PeityDonutWidget;
?>

<?= PeityBarWidget::widget(['values'=>[5, 6, 7, 11, 14, 10, 15, 19, 15, 2]]); ?>

<?= PeityLineWidget::widget(['values'=>[5, 6, 7, 11, 14, 10, 15, 19, 15, 2]]); ?>

<?= PeityPieWidget::widget(['values'=>[0.6]]); ?>

<?= PeityDonutWidget::widget(['values'=>[3/7]]); ?>

License

conquer/peity is released under the MIT License. See the bundled LICENSE.md for details.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

  • 1.010 April 2015

Comments



1.0 is the latest of one release



MIT license
Stats
0 github stars & 3 github forks
0 downloads in the last day
2 downloads in the last 30 days
1344 total downloads