rgraph

Wrapper for RGraph charts library
10 followers

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.

Requirements

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

Usage

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

Resources

Total 4 comments

#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
Downloads