conquer/peity

Yii2 peity widget

Installs: 4 115

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 1

Open Issues: 0

Type:yii2-extension

1.0 2015-04-10 16:18 UTC

This package is auto-updated.

Last update: 2024-11-24 04:42:27 UTC


README

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.