Yii 1.1: justgage-yii

Widget for gauge graphics javascript library JustGage
4 followers

JustGage for Yii is a widget for gauge Just Gage javascript library http://www.justgage.com.

Requirements

Yii 1.1 or above

Usage

Uncompress in 'protected/extensions'.

To use this widget, you may insert the following code in a view:

$this->Widget('ext.justgage.JustGage', array(
        'options'=>array(
            'value' => 67, 
            'min' => 0,
            'max' => 100,
            'title' => "Visitors",
        ),
        'htmlOptions'=> array(
            'style'=>'width:200px; height:160px; margin: 0 auto;',
        ),
    ));

You can also use a JSON string:

$this->Widget('ext.justgage.JustGage', array(
        'options'=>'{
            "value": 67, 
            "min": 0,
            "max": 100,
            "title": "Visitors"
        }',
        'htmlOptions'=> array(
            'style'=>'width:200px; height:160px; margin: 0 auto;',
        ),
  ));

Resources

Last version of this package contents are in GitHub JustGage-Yii

Total 2 comments

#18273 report it
mahdi1986 at 2014/10/10 05:55am
Thx

Thx for this ext

#18067 report it
Gustavo Andrade at 2014/09/03 04:04pm
Good!

Work fine! Its a good jq pluguin

Leave a comment

Please to leave your comment.

Create extension