Yii 1.1: rgraph

Wrapper for RGraph charts library

RGraph is a charts library that uses Javascript and HTML5 to draw and supports over twenty different types of charts. Using the new HTML5 canvas tag, RGraph creates these charts inside the web browser, meaning quicker pages and less web server load. This leads to smaller page sizes and faster websites.


  • RGraph
  • YiiFramework 1.1.x (Tested on 1.1.10)


Download RGraph library and decompress it to protected/vendors/rgraph (you can change this path with the rGraphPath parameter)

Download this extension wherever you want (in this example, we'll use protected/widgets)

$this->widget('application.widgets.rgraph.RGraphBar', array(
    'data' => array(1, 3, 5, 7, 2, 4, 6, 10, 8, 9, 12, 11),
    'options' => array(
        'chart' => array(
            'gutter' => array(
                'left' => 35,
            'colors' => array('red'),
            'title' => 'A basic chart',
            'labels' => array(
                'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'


Total 8 comments

#14145 report it
Ankit Modi at 2013/07/23 12:04am
create a thermometer using rgraph extesion..

Hi Friends,

i will create the therometer widgets http://www.rgraph.net/examples/thermometer.html using Rgraph extesion..

so please check it..


if you have any query please freely to ask..

and thanks..robregonm

#14139 report it
robregonm at 2013/07/22 03:06pm
Cool you solved it

Thanks for letting us know you solved your issue @Ankit Feel free to report any bug

#14041 report it
Ankit Modi at 2013/07/13 10:43pm
Error Resolved

Hi Friends,

please make sure you can check the spelling on protected folder widgets or widget

otherwise you can fetch the error..

Alias "application.widgets.rgraph.RGraphBar" is invalid. Make sure it points to an existing PHP file and the file is readable.

#14040 report it
Ankit Modi at 2013/07/12 11:10pm

Hi Friends,

can any one install this extesion.when i install it's show me the error..

The asset "/var/www/redkey/protected/vendors/RGraph/css" to be published does not exist.

Please help me...

#8916 report it
Txomin at 2012/07/07 04:05am
Thank you

Very useful, thank you.

#7919 report it
robregonm at 2012/04/26 09:14am
RGraph download link

@jowen I have no problems to access RGraph page. The last stable RGraph version is: http://www.rgraph.net/downloads/RGraph2_2012-03-28-stable.zip

#7911 report it
jowen at 2012/04/25 10:01pm
RGraph library

Can upload the RGraph library through here? Thanks. The website seem cant loading. www.rgraph.net

#7909 report it
bennouna at 2012/04/25 07:44pm
Watch out for RGraph license

Like many graph libraries, it's not free for commercial purposes. Quote:

RGraph is free to use on non-commercial websites such as personal blogs, educational, or charity sites - you don't need to buy a license - only link to the RGraph website on your own site. Donations of any size are always gratefully received! Go here for details about a commercial/government license or donating.

Leave a comment

Please to leave your comment.

Create extension